3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pricePerDay = 800; $days = range(1,30); foreach ($days as $day) { $price = ($day * $pricePerDay); echo $price . PHP_EOL; }
Output for 4.3.10 - 4.3.11, 4.4.0 - 4.4.9, 5.0.2 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.7, 7.2.29 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
800 1600 2400 3200 4000 4800 5600 6400 7200 8000 8800 9600 10400 11200 12000 12800 13600 14400 15200 16000 16800 17600 18400 19200 20000 20800 21600 22400 23200 24000
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/pvUjK on line 8 800PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/pvUjK on line 8 1600PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/pvUjK on line 8 2400PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/pvUjK on line 8 3200PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/pvUjK on line 8 4000PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/pvUjK on line 8 4800PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/pvUjK on line 8 5600PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/pvUjK on line 8 6400PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/pvUjK on line 8 7200PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/pvUjK on line 8 8000PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/pvUjK on line 8 8800PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/pvUjK on line 8 9600PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/pvUjK on line 8 10400PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/pvUjK on line 8 11200PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/pvUjK on line 8 12000PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/pvUjK on line 8 12800PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/pvUjK on line 8 13600PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/pvUjK on line 8 14400PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/pvUjK on line 8 15200PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/pvUjK on line 8 16000PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/pvUjK on line 8 16800PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/pvUjK on line 8 17600PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/pvUjK on line 8 18400PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/pvUjK on line 8 19200PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/pvUjK on line 8 20000PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/pvUjK on line 8 20800PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/pvUjK on line 8 21600PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/pvUjK on line 8 22400PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/pvUjK on line 8 23200PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/pvUjK on line 8 24000PHP_EOL

preferences:
207.95 ms | 409 KiB | 304 Q