3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function __autoload($class) { echo __FUNCTION__, ": $class\n"; eval("class $class extends stdClass {}"); } $result = unserialize('O:1:"a":1:{s:5:"value";O:3:"abc":1:{s:5:"value";s:3:"100";}}'); var_dump($result);
Output for 7.2.0 - 7.3.0rc4
Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /in/WohcI on line 2 __autoload: a __autoload: abc object(a)#1 (1) { ["value"]=> object(abc)#2 (1) { ["value"]=> string(3) "100" } }
Output for 5.0.0 - 7.1.20
__autoload: a __autoload: abc object(a)#1 (1) { ["value"]=> object(abc)#2 (1) { ["value"]=> string(3) "100" } }
Output for 4.3.0 - 4.4.9
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" } }