3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php for($i = 0; $i < 100; $i++) { if($i % 33 == 0) echo "You got it! " . $i . PHP_EOL; }
based on 3aPZe
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.2.0
You got it! 0 You got it! 33 You got it! 66 You got it! 99
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nMJfC on line 6 You got it! 0PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nMJfC on line 6 You got it! 33PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nMJfC on line 6 You got it! 66PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nMJfC on line 6 You got it! 99PHP_EOL