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:{}')); phpinfo('ryat');
based on 2RZkq
Output for 5.4.35 - 7.1.0
Notice: unserialize(): Error at offset 12 of 20 bytes in /in/Y1Zl6 on line 4 bool(false) Warning: phpinfo() has been disabled for security reasons in /in/Y1Zl6 on line 5
Output for 4.3.11 - 4.4.9, 5.0.4 - 5.4.34
Warning: ini_set() has been disabled for security reasons in /in/Y1Zl6 on line 3 Notice: unserialize(): Error at offset 12 of 20 bytes in /in/Y1Zl6 on line 4 bool(false) Warning: phpinfo() expects parameter 1 to be long, string given in /in/Y1Zl6 on line 5
Output for 5.0.0 - 5.0.3
Warning: ini_set() has been disabled for security reasons in /in/Y1Zl6 on line 3 object(__PHP_Incomplete_Class)#1 (1) { ["__PHP_Incomplete_Class_Name"]=> string(9) "phpinfo()" } Warning: phpinfo() expects parameter 1 to be long, string given in /in/Y1Zl6 on line 5
Output for 4.3.5 - 4.3.10
Warning: ini_set() has been disabled for security reasons in /in/Y1Zl6 on line 3 object(__PHP_Incomplete_Class)(1) { ["__PHP_Incomplete_Class_Name"]=> string(9) "phpinfo()" } Warning: phpinfo() expects parameter 1 to be long, string given in /in/Y1Zl6 on line 5
Output for 4.3.1 - 4.3.4
Warning: ini_set,pcntl_fork() has been disabled for security reasons in /in/Y1Zl6 on line 3 object(__PHP_Incomplete_Class)(1) { ["__PHP_Incomplete_Class_Name"]=> string(9) "phpinfo()" } Warning: phpinfo() expects parameter 1 to be long, string given in /in/Y1Zl6 on line 5
Output for 4.3.0
Warning: phpinfo,mail() has been disabled for security reasons in /in/Y1Zl6(4) : assert code on line 1 Warning: assert() [http://www.php.net/function.assert]: Assertion "phpinfo()" failed in /in/Y1Zl6 on line 4 Warning: 'unserialize_callback_func' (assert) hasn't defined the class it was called for in /in/Y1Zl6 on line 4 object(__PHP_Incomplete_Class)(1) { ["__PHP_Incomplete_Class_Name"]=> string(9) "phpinfo()" } Warning: phpinfo,mail() has been disabled for security reasons in /in/Y1Zl6 on line 5