3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo($bar = BAZ) {} var_dump(foo());
based on JhPMp
Output for 7.2.0
Warning: Use of undefined constant BAZ - assumed 'BAZ' (this will throw an Error in a future version of PHP) in /in/lli2Z on line 3 NULL
Output for 5.3.21 - 7.1.10
Notice: Use of undefined constant BAZ - assumed 'BAZ' in /in/lli2Z on line 3 NULL