3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ob_start('assert'); echo "register_shutdown_function('assert', 'exit(\'hahaha\')')"; ob_get_flush();
based on 9Dl7R
Output for 7.1.0 - 7.2.6
register_shutdown_function('assert', 'exit(\'hahaha\')') Warning: Cannot call assert() with string argument dynamically in /in/LrSIj on line 5
Output for 7.0.1 - 7.0.20
register_shutdown_function('assert', 'exit(\'hahaha\')') Warning: assert(): 9: "register_shutdown_function('assert', 'exit(\'hahaha\')')" failed in /in/LrSIj on line 5 hahaha
Output for 5.4.8 - 7.0.0
hahaha
Output for 5.3.19 - 5.4.7