3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php ini_set('unserialize_callback_func','assert'); var_dump(unserialize('O:9:"phpinfo()":0:{}')); //assert('phpinfo()');
based on nJTRA
Output for 5.4.35 - 5.6.28, 7.0.0 - 7.1.0
Notice: unserialize(): Error at offset 12 of 20 bytes in /in/2RZkq on line 4 bool(false)
Output for hhvm-3.12.0
object(__PHP_Incomplete_Class)#1 (1) { ["__PHP_Incomplete_Class_Name"]=> string(9) "phpinfo()" }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.11 - 4.4.9, 5.0.4 - 5.0.5, 5.1.1 - 5.4.34
Warning: ini_set() has been disabled for security reasons in /in/2RZkq on line 3 Notice: unserialize(): Error at offset 12 of 20 bytes in /in/2RZkq on line 4 bool(false)
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/2RZkq on line 5
Process exited with code 255.
Output for 5.0.0 - 5.0.3
Warning: ini_set() has been disabled for security reasons in /in/2RZkq on line 3 object(__PHP_Incomplete_Class)#1 (1) { ["__PHP_Incomplete_Class_Name"]=> string(9) "phpinfo()" }
Output for 4.3.5 - 4.3.10
Warning: ini_set() has been disabled for security reasons in /in/2RZkq on line 3 object(__PHP_Incomplete_Class)(1) { ["__PHP_Incomplete_Class_Name"]=> string(9) "phpinfo()" }
Output for 4.3.1 - 4.3.4
Warning: ini_set,pcntl_fork() has been disabled for security reasons in /in/2RZkq on line 3 object(__PHP_Incomplete_Class)(1) { ["__PHP_Incomplete_Class_Name"]=> string(9) "phpinfo()" }
Output for 4.3.0
Warning: phpinfo,mail() has been disabled for security reasons in /in/2RZkq(4) : assert code on line 1 Warning: assert() [http://www.php.net/function.assert]: Assertion "phpinfo()" failed in /in/2RZkq on line 4 Warning: 'unserialize_callback_func' (assert) hasn't defined the class it was called for in /in/2RZkq on line 4 object(__PHP_Incomplete_Class)(1) { ["__PHP_Incomplete_Class_Name"]=> string(9) "phpinfo()" }