3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ini_set('unserialize_callback_func','assert'); var_dump(unserialize('O:7:"phpinfo":0:{}')); assert('phpinfo()');
based on C3jkV
Output for 7.2.0
Warning: Cannot call assert() with string argument dynamically in /in/nJTRA on line 4 Warning: unserialize(): Function assert() hasn't defined the class it was called for in /in/nJTRA on line 4 object(__PHP_Incomplete_Class)#1 (1) { ["__PHP_Incomplete_Class_Name"]=> string(7) "phpinfo" } Deprecated: assert(): Calling assert() with a string argument is deprecated in /in/nJTRA on line 5 Warning: phpinfo() has been disabled for security reasons in /in/nJTRA(5) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/nJTRA on line 5
Output for 7.1.0 - 7.1.10
Warning: Cannot call assert() with string argument dynamically in /in/nJTRA on line 4 Warning: unserialize(): Function assert() hasn't defined the class it was called for in /in/nJTRA on line 4 object(__PHP_Incomplete_Class)#1 (1) { ["__PHP_Incomplete_Class_Name"]=> string(7) "phpinfo" } Warning: phpinfo() has been disabled for security reasons in /in/nJTRA(5) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/nJTRA on line 5
Output for 5.4.0 - 7.0.20
Notice: Use of undefined constant phpinfo - assumed 'phpinfo' in /in/nJTRA(4) : assert code on line 1 Warning: unserialize(): Function assert() hasn't defined the class it was called for in /in/nJTRA on line 4 object(__PHP_Incomplete_Class)#1 (1) { ["__PHP_Incomplete_Class_Name"]=> string(7) "phpinfo" } Warning: phpinfo() has been disabled for security reasons in /in/nJTRA(5) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/nJTRA on line 5