3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define('IN_DIR', 'Hi'); var_dump(IN_DIR); runkit_constant_redefine('IN_DIR', 'Hello'); var_dump(IN_DIR);
Output for 7.0.0 - 7.2.0
string(2) "Hi" Fatal error: Uncaught Error: Call to undefined function runkit_constant_redefine() in /in/0eZHo:5 Stack trace: #0 {main} thrown in /in/0eZHo on line 5
Process exited with code 255.
Output for 5.3.18 - 5.6.28
string(2) "Hi" Fatal error: Call to undefined function runkit_constant_redefine() in /in/0eZHo on line 5
Process exited with code 255.