3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class phpinfo1 {} $a = new phpinfo1(); var_dump($a); //$a = 'O:12:"phpinfo();/*":0:{}'; $a = 'O:7:"phpinfo":0:{}'; var_dump(unserialize($a)); var_export(unserialize($a)); //eval('$b = '.var_export(unserialize($a), true).';'); ReflectionFunction::invoke('phpinfo');
based on eccCA
Output for 7.0.0 - 7.1.0
object(phpinfo1)#1 (0) { } object(__PHP_Incomplete_Class)#1 (1) { ["__PHP_Incomplete_Class_Name"]=> string(7) "phpinfo" } __PHP_Incomplete_Class::__set_state(array( '__PHP_Incomplete_Class_Name' => 'phpinfo', )) Fatal error: Uncaught Error: Non-static method ReflectionFunction::invoke() cannot be called statically in /in/psWPd:14 Stack trace: #0 {main} thrown in /in/psWPd on line 14
Process exited with code 255.
Output for 5.1.0 - 5.6.28
object(phpinfo1)#1 (0) { } object(__PHP_Incomplete_Class)#1 (1) { ["__PHP_Incomplete_Class_Name"]=> string(7) "phpinfo" } __PHP_Incomplete_Class::__set_state(array( '__PHP_Incomplete_Class_Name' => 'phpinfo', )) Fatal error: Non-static method ReflectionFunction::invoke() cannot be called statically in /in/psWPd on line 14
Process exited with code 255.
Output for 5.0.0 - 5.0.5
object(phpinfo1)#1 (0) { } object(__PHP_Incomplete_Class)#1 (1) { ["__PHP_Incomplete_Class_Name"]=> string(7) "phpinfo" } class __PHP_Incomplete_Class { public $__PHP_Incomplete_Class_Name = 'phpinfo'; } Fatal error: Non-static method ReflectionFunction::invoke() cannot be called statically in /in/psWPd on line 14
Process exited with code 255.
Output for 4.3.2 - 4.4.9
object(phpinfo1)(0) { } object(__PHP_Incomplete_Class)(1) { ["__PHP_Incomplete_Class_Name"]=> string(7) "phpinfo" } class __PHP_Incomplete_Class { var $__PHP_Incomplete_Class_Name = 'phpinfo'; } Fatal error: Undefined class name 'reflectionfunction' in /in/psWPd on line 14
Process exited with code 255.
Output for 4.3.0 - 4.3.1
object(phpinfo1)(0) { } object(__PHP_Incomplete_Class)(1) { ["__PHP_Incomplete_Class_Name"]=> string(7) "phpinfo" } class __PHP_Incomplete_Class { var $__PHP_Incomplete_Class_Name = 'phpinfo'; } Fatal error: Undefined class name 'reflectionfunction' in /in/psWPd on line 14