3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function autoloader($className) { echo "Autoload: '$className'\n"; } $classStr = 'O:1:"a":0:{}'; spl_autoload_register('autoloader'); var_dump(unserialize($classStr));
Output for 5.1.0 - 7.1.0
Autoload: 'a' object(__PHP_Incomplete_Class)#1 (1) { ["__PHP_Incomplete_Class_Name"]=> string(1) "a" }
Output for 5.0.0 - 5.0.5
Fatal error: Call to undefined function spl_autoload_register() in /in/lY6tZ on line 9
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: spl_autoload_register() in /in/lY6tZ on line 9
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: spl_autoload_register() in /in/lY6tZ on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: spl_autoload_register() in /in/lY6tZ on line 9