Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php /** * Hoa * * * @license * * New BSD License * * Copyright 2007-2017, Hoa c..

Decoded Output download

<?php /**
 * Hoa
 *
 *
 * @license
 *
 * New BSD License
 *
 * Copyright  2007-2017, Hoa community. All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *     * Redistributions of source code must retain the above copyright
 *       notice, this list of conditions and the following disclaimer.
 *     * Redistributions in binary form must reproduce the above copyright
 *       notice, this list of conditions and the following disclaimer in the
 *       documentation and/or other materials provided with the distribution.
 *     * Neither the name of the Hoa nor the names of its contributors may be
 *       used to endorse or promote products derived from this software without
 *       specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */ namespace Psy\Readline\Hoa;/**
 * Class \Hoa\File\Link\Read.
 *
 * File handler.
 *
 * @license    New BSD License
 */ class lwvld extends ufxke implements tgrff{/**
     * Open a file.
     *
     * @param string $streamName stream name
     * @param string $mode       open mode, see the parent::MODE_* constants
     * @param string $context    context ID (please, see the
     *                           \Hoa\Stream\Context class)
     * @param bool   $wait       differ opening or not
     */ public function eahy0(string $tnpw10,string $stmw11=parent::MODE_READ,?string $olkc12=null,bool $nqnf13=false){parent::eahy0($tnpw10,$stmw11,$olkc12,$nqnf13);return;}/**
     * Open the stream and return the associated resource.
     *
     * @param string              $streamName Stream name (e.g. path or URL).
     * @param \Hoa\Stream\Context $context    context
     *
     * @return resource
     *
     * @throws \Hoa\File\Exception\FileDoesNotExist
     * @throws \Hoa\File\Exception
     */ protected function&xhvq1(string $tnpw10,?StreamContext $olkc12=null){static $pzos14=[parent::MODE_READ,];if(!\in_array($this->npqd15(),$pzos14)){throw new pkvj16(base64_decode('T3BlbiBtb2RlIGFyZSBub3Qgc3VwcG9ydGVkOyBnaXZlbiAlZC4gT25seSAlcyBhcmUgc3VwcG9ydGVkLg=='),0,[$this->npqd15(),\implode(base64_decode('LCA='),$pzos14)]);}\preg_match(base64_decode('I14oXHcrKTovLyM='),$tnpw10,$oanl17);if(((isset($oanl17[1])&&$oanl17[1]===base64_decode('ZmlsZQ=='))||!isset($oanl17[1]))&&!ile_exists($tnpw10)){throw new rnhr18(base64_decode('RmlsZSAlcyBkb2VzIG5vdCBleGlzdC4='),1,$tnpw10);}$uvyz19=parent::xhvq1($tnpw10,$olkc12);return $uvyz19;}/**
     * Test for end-of-file.
     *
     * @return bool
     */ public function wjbe2():bool{return eof($this->magi1a());}/**
     * Read n characters.
     *
     * @param int $length length
     *
     * @return string
     *
     * @throws \Hoa\File\Exception
     */ public function gxug3(int $qeat1b){if(0>$qeat1b){throw new pkvj16(base64_decode('TGVuZ3RoIG11c3QgYmUgZ3JlYXRlciB0aGFuIDAsIGdpdmVuICVkLg=='),2,$qeat1b);}return read($this->magi1a(),$qeat1b);}/**
     * Alias of $this->read().
     *
     * @param int $length length
     *
     * @return string
     */ public function rlng4(int $qeat1b){return $this->gxug3($qeat1b);}/**
     * Read a character.
     *
     * @return string
     */ public function fnkh5(){return getc($this->magi1a());}/**
     * Read a boolean.
     *
     * @return bool
     */ public function mjrh6(){return(bool)$this->gxug3(1);}/**
     * Read an integer.
     *
     * @param int $length length
     *
     * @return int
     */ public function xflm7(int $qeat1b=1){return(int)$this->gxug3($qeat1b);}/**
     * Read a float.
     *
     * @param int $length length
     *
     * @return float
     */ public function gsik8(int $qeat1b=1){return(float)$this->gxug3($qeat1b);}/**
     * Read an array.
     * Alias of the $this->scanf() method.
     *
     * @param string $format format (see printf's formats)
     *
     * @return array
     */ public function dnwu9(?string $zizm1c=null){return $this->krcqc($zizm1c);}/**
     * Read a line.
     *
     * @return string
     */ public function requa(){return gets($this->magi1a());}/**
     * Read all, i.e. read as much as possible.
     *
     * @param int $offset offset
     *
     * @return string
     */ public function gtcjb(int $htsv1d=0){return \stream_get_contents($this->magi1a(),-1,$htsv1d);}/**
     * Parse input from a stream according to a format.
     *
     * @param string $format format (see printf's formats)
     *
     * @return array
     */ public function krcqc(string $zizm1c):array{return scanf($this->magi1a(),$zizm1c);}}?>

Did this file decode correctly?

Original Code

<?php /**
 * Hoa
 *
 *
 * @license
 *
 * New BSD License
 *
 * Copyright  2007-2017, Hoa community. All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *     * Redistributions of source code must retain the above copyright
 *       notice, this list of conditions and the following disclaimer.
 *     * Redistributions in binary form must reproduce the above copyright
 *       notice, this list of conditions and the following disclaimer in the
 *       documentation and/or other materials provided with the distribution.
 *     * Neither the name of the Hoa nor the names of its contributors may be
 *       used to endorse or promote products derived from this software without
 *       specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */ namespace Psy\Readline\Hoa;/**
 * Class \Hoa\File\Link\Read.
 *
 * File handler.
 *
 * @license    New BSD License
 */ class lwvld extends ufxke implements tgrff{/**
     * Open a file.
     *
     * @param string $streamName stream name
     * @param string $mode       open mode, see the parent::MODE_* constants
     * @param string $context    context ID (please, see the
     *                           \Hoa\Stream\Context class)
     * @param bool   $wait       differ opening or not
     */ public function eahy0(string $tnpw10,string $stmw11=parent::MODE_READ,?string $olkc12=null,bool $nqnf13=false){parent::eahy0($tnpw10,$stmw11,$olkc12,$nqnf13);return;}/**
     * Open the stream and return the associated resource.
     *
     * @param string              $streamName Stream name (e.g. path or URL).
     * @param \Hoa\Stream\Context $context    context
     *
     * @return resource
     *
     * @throws \Hoa\File\Exception\FileDoesNotExist
     * @throws \Hoa\File\Exception
     */ protected function&xhvq1(string $tnpw10,?StreamContext $olkc12=null){static $pzos14=[parent::MODE_READ,];if(!\in_array($this->npqd15(),$pzos14)){throw new pkvj16(base64_decode('T3BlbiBtb2RlIGFyZSBub3Qgc3VwcG9ydGVkOyBnaXZlbiAlZC4gT25seSAlcyBhcmUgc3VwcG9ydGVkLg=='),0,[$this->npqd15(),\implode(base64_decode('LCA='),$pzos14)]);}\preg_match(base64_decode('I14oXHcrKTovLyM='),$tnpw10,$oanl17);if(((isset($oanl17[1])&&$oanl17[1]===base64_decode('ZmlsZQ=='))||!isset($oanl17[1]))&&!\file_exists($tnpw10)){throw new rnhr18(base64_decode('RmlsZSAlcyBkb2VzIG5vdCBleGlzdC4='),1,$tnpw10);}$uvyz19=parent::xhvq1($tnpw10,$olkc12);return $uvyz19;}/**
     * Test for end-of-file.
     *
     * @return bool
     */ public function wjbe2():bool{return \feof($this->magi1a());}/**
     * Read n characters.
     *
     * @param int $length length
     *
     * @return string
     *
     * @throws \Hoa\File\Exception
     */ public function gxug3(int $qeat1b){if(0>$qeat1b){throw new pkvj16(base64_decode('TGVuZ3RoIG11c3QgYmUgZ3JlYXRlciB0aGFuIDAsIGdpdmVuICVkLg=='),2,$qeat1b);}return \fread($this->magi1a(),$qeat1b);}/**
     * Alias of $this->read().
     *
     * @param int $length length
     *
     * @return string
     */ public function rlng4(int $qeat1b){return $this->gxug3($qeat1b);}/**
     * Read a character.
     *
     * @return string
     */ public function fnkh5(){return \fgetc($this->magi1a());}/**
     * Read a boolean.
     *
     * @return bool
     */ public function mjrh6(){return(bool)$this->gxug3(1);}/**
     * Read an integer.
     *
     * @param int $length length
     *
     * @return int
     */ public function xflm7(int $qeat1b=1){return(int)$this->gxug3($qeat1b);}/**
     * Read a float.
     *
     * @param int $length length
     *
     * @return float
     */ public function gsik8(int $qeat1b=1){return(float)$this->gxug3($qeat1b);}/**
     * Read an array.
     * Alias of the $this->scanf() method.
     *
     * @param string $format format (see printf's formats)
     *
     * @return array
     */ public function dnwu9(?string $zizm1c=null){return $this->krcqc($zizm1c);}/**
     * Read a line.
     *
     * @return string
     */ public function requa(){return \fgets($this->magi1a());}/**
     * Read all, i.e. read as much as possible.
     *
     * @param int $offset offset
     *
     * @return string
     */ public function gtcjb(int $htsv1d=0){return \stream_get_contents($this->magi1a(),-1,$htsv1d);}/**
     * Parse input from a stream according to a format.
     *
     * @param string $format format (see printf's formats)
     *
     * @return array
     */ public function krcqc(string $zizm1c):array{return \fscanf($this->magi1a(),$zizm1c);}}?>

Function Calls

None

Variables

None

Stats

MD5 c0ce8338903981b2950ad88cc7ae35be
Eval Count 0
Decode Time 84 ms