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 /** * This file is part of the reliforp/reli-prof package. * * (c) sji <sji@sj-i..
Decoded Output download
<?php
/**
* This file is part of the reliforp/reli-prof package.
*
* (c) sji <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Reli\Lib\PhpInternals\Types\Zend;
use FFI\CData;
class ZendMmPageMap
{
/** @param \FFI\PhpInternals\zend_mm_page_map $cdata */
public function __construct(
private CData $cdata,
) {
}
public function getPageInfo(
int $page_index
): ZendMmPageInfoSmall|ZendMmPageInfoLarge|ZendMmPageInfoFree {
$info = $this->cdata[$page_index];
if ($info === 0) {
return new ZendMmPageInfoFree();
} elseif ($info & 0x80000000) {
return new ZendMmPageInfoSmall($info);
} elseif ($info & 0x40000000) {
return new ZendMmPageInfoLarge($info);
}
throw new \LogicException();
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* This file is part of the reliforp/reli-prof package.
*
* (c) sji <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Reli\Lib\PhpInternals\Types\Zend;
use FFI\CData;
class ZendMmPageMap
{
/** @param \FFI\PhpInternals\zend_mm_page_map $cdata */
public function __construct(
private CData $cdata,
) {
}
public function getPageInfo(
int $page_index
): ZendMmPageInfoSmall|ZendMmPageInfoLarge|ZendMmPageInfoFree {
$info = $this->cdata[$page_index];
if ($info === 0) {
return new ZendMmPageInfoFree();
} elseif ($info & 0x80000000) {
return new ZendMmPageInfoSmall($info);
} elseif ($info & 0x40000000) {
return new ZendMmPageInfoLarge($info);
}
throw new \LogicException();
}
}
Function Calls
None |
Stats
MD5 | 4c843e999754537249343318a0840b42 |
Eval Count | 0 |
Decode Time | 91 ms |