3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define("foo","bar"); echo foo; echo bar;
Output for 7.2.0
bar Warning: Use of undefined constant bar - assumed 'bar' (this will throw an Error in a future version of PHP) in /in/imFeg on line 6 bar
Output for 5.3.22 - 7.1.10
bar Notice: Use of undefined constant bar - assumed 'bar' in /in/imFeg on line 6 bar