3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $v1 = 0; $v2 = 0; for ($i = 1; $i <= 100; $i++) { $v1+= (int)((0.1+$i/10)*10); } for ($i = 1; $i <= 100; $i++) { $v2 += (int)(1 + $i); } print $v1 . PHP_EOL . $v2;
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.2.0
5135 5150
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/14mia on line 14 5135PHP_EOL5150