3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php for($i = 0; $i < 19; $i += 2) { echo $i . " "; echo ($i + 1) . PHP_EOL; }
based on 0s1QU
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.6.38, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.3.0rc3
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
0 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/QGB2V on line 5 1PHP_EOL2 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/QGB2V on line 5 3PHP_EOL4 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/QGB2V on line 5 5PHP_EOL6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/QGB2V on line 5 7PHP_EOL8 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/QGB2V on line 5 9PHP_EOL10 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/QGB2V on line 5 11PHP_EOL12 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/QGB2V on line 5 13PHP_EOL14 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/QGB2V on line 5 15PHP_EOL16 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/QGB2V on line 5 17PHP_EOL18 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/QGB2V on line 5 19PHP_EOL