Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- Function definition with void --SKIPIF-- <?php include(__DIR__ . '/../skipif.inc'..
Decoded Output download
--TEST--
Function definition with void
--SKIPIF--
<?php include(__DIR__ . '/../skipif.inc'); ?>
--FILE--
<?php
$code =<<<ZEP
function test() -> void { }
ZEP;
$ir = zephir_parse_file($code, '(eval code)');
var_dump($ir);
?>
--EXPECT--
array(1) {
[0]=>
array(6) {
["type"]=>
string(8) "function"
["name"]=>
string(4) "test"
["return-type"]=>
array(5) {
["type"]=>
string(11) "return-type"
["void"]=>
int(1)
["file"]=>
string(11) "(eval code)"
["line"]=>
int(1)
["char"]=>
int(26)
}
["file"]=>
string(11) "(eval code)"
["line"]=>
int(1)
["char"]=>
int(9)
}
}
Did this file decode correctly?
Original Code
--TEST--
Function definition with void
--SKIPIF--
<?php include(__DIR__ . '/../skipif.inc'); ?>
--FILE--
<?php
$code =<<<ZEP
function test() -> void { }
ZEP;
$ir = zephir_parse_file($code, '(eval code)');
var_dump($ir);
?>
--EXPECT--
array(1) {
[0]=>
array(6) {
["type"]=>
string(8) "function"
["name"]=>
string(4) "test"
["return-type"]=>
array(5) {
["type"]=>
string(11) "return-type"
["void"]=>
int(1)
["file"]=>
string(11) "(eval code)"
["line"]=>
int(1)
["char"]=>
int(26)
}
["file"]=>
string(11) "(eval code)"
["line"]=>
int(1)
["char"]=>
int(9)
}
}
Function Calls
None |
Stats
MD5 | 03bb96ccd0d32acdef74c70882cef1ab |
Eval Count | 0 |
Decode Time | 92 ms |