3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function __autoload($class) { echo __FUNCTION__, ": $class\n"; eval("class $class extends stdClass {}"); } ini_set('unserialize_callback_func', 'spl_autoload_call'); $result = unserialize('O:1:"a":1:{s:5:"value";O:3:"abc":1:{s:5:"value";s:3:"100";}}'); var_dump($result);
Output for 5.0.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
__autoload: a __autoload: abc object(a)#1 (1) { ["value"]=> object(abc)#2 (1) { ["value"]=> string(3) "100" } }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 4.4.9
Warning: 'unserialize_callback_func' defined (spl_autoload_call) but not found in /in/sbL7L on line 10 Warning: 'unserialize_callback_func' defined (spl_autoload_call) but not found in /in/sbL7L on line 10 object(__PHP_Incomplete_Class)(2) { ["__PHP_Incomplete_Class_Name"]=> string(1) "a" ["value"]=> object(__PHP_Incomplete_Class)(2) { ["__PHP_Incomplete_Class_Name"]=> string(3) "abc" ["value"]=> string(3) "100" } }