3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $y = array("2014","2015","2016","2017","2018","2019","2020"); foreach (array("2014","2015","2016","2017","2018","2019","2020") as $valor) { echo $valor,\n; } ?>
based on 1jDso
Output for 7.0.0 - 7.2.8
2014 Fatal error: Uncaught Error: Undefined constant 'n' in /in/onMZ4:10 Stack trace: #0 {main} thrown in /in/onMZ4 on line 10
Process exited with code 255.
Output for 5.3.20 - 5.6.28
2014 Fatal error: Undefined constant 'n' in /in/onMZ4 on line 10
Process exited with code 255.