3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = 'O:7:"phpinfo":0:{}'; $obj = unserialize($str); var_dump($obj); var_export($obj); //eval('$str = ' . var_export($obj, true) . ';');
based on GKRPL
Output for 5.1.1 - 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 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/TeIMK on line 7
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'; }