3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php for($i=1;$i<13;$i++){ echo intval(($i+2)/3) . PHP_EOL; }
based on MqMUQ
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.2.0
1 1 1 2 2 2 3 3 3 4 4 4
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/1f5sK on line 3 1PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1f5sK on line 3 1PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1f5sK on line 3 1PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1f5sK on line 3 2PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1f5sK on line 3 2PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1f5sK on line 3 2PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1f5sK on line 3 3PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1f5sK on line 3 3PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1f5sK on line 3 3PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1f5sK on line 3 4PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1f5sK on line 3 4PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1f5sK on line 3 4PHP_EOL