3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var =array( 1.700, '1700', '1.700', 1700, '1,700.00', '1.700,00'); foreach ($var as $n){ echo round($n), PHP_EOL; }
based on 6AOH6
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.3.0rc4
2 1700 2 1700 1 2
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
2 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/OQ2Ib on line 5 PHP_EOL1700 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/OQ2Ib on line 5 PHP_EOL2 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/OQ2Ib on line 5 PHP_EOL1700 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/OQ2Ib on line 5 PHP_EOL1 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/OQ2Ib on line 5 PHP_EOL2 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/OQ2Ib on line 5 PHP_EOL