3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define("TEST", function() { echo "test"; }); TEST();
based on HSvGr
Output for 7.0.0 - 7.2.0
Warning: Constants may only evaluate to scalar values or arrays in /in/Oi6jh on line 3 Fatal error: Uncaught Error: Call to undefined function TEST() in /in/Oi6jh:5 Stack trace: #0 {main} thrown in /in/Oi6jh on line 5
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Warning: Constants may only evaluate to scalar values in /in/Oi6jh on line 3 Fatal error: Call to undefined function TEST() in /in/Oi6jh on line 5
Process exited with code 255.