3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //class phpinfo {} //$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).';');
based on 68CEl
Output for 5.1.1 - 5.6.28, 7.0.0 - 7.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', ))
Output for hhvm-3.12.0
object(__PHP_Incomplete_Class)#1 (1) { ["__PHP_Incomplete_Class_Name"]=> string(7) "phpinfo" } phpinfo::__set_state(array( ))
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/hElIo on line 9
Process exited with code 255.
Output for 5.0.0 - 5.0.5
object(__PHP_Incomplete_Class)#1 (1) { ["__PHP_Incomplete_Class_Name"]=> string(7) "phpinfo" } class __PHP_Incomplete_Class { public $__PHP_Incomplete_Class_Name = 'phpinfo'; }
Output for 4.3.0 - 4.4.9
object(__PHP_Incomplete_Class)(1) { ["__PHP_Incomplete_Class_Name"]=> string(7) "phpinfo" } class __PHP_Incomplete_Class { var $__PHP_Incomplete_Class_Name = 'phpinfo'; }