3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo intval(3.2). ' '.intval(3.5).' '.intval(3.7).PHP_EOL; echo round(3.2). ' '.round(3.5).' '.round(3.7).PHP_EOL; echo number_format(1.5, 0) . ' '. round(1.5);
based on fR7e1
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.2.0
3 3 3 3 4 4 2 2
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/HbqGu on line 3 3 3 3PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/HbqGu on line 4 3 4 4PHP_EOL2 2