3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo intval('3.581E+8'+0), "\n", intval('3.581E8'+0), "\n", intval('+3.581E8'+0), "\n", intval('-3.581E8'+0), "\n" ; echo intval(0+'3.581E+8'), "\n", intval(0+'3.581E8'), "\n", intval(0+'+3.581E8'), "\n", intval(0+'-3.581E8'), "\n" ; var_dump((int)0+'3.581E+8');
Output for 5.2.7 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
358100000 358100000 358100000 -358100000 358100000 358100000 358100000 -358100000 float(358100000)
Output for 4.3.0 - 5.2.6
358100000 358100000 358100000 -358100000 358100000 358100000 358100000 -358100000 float(3.581E+8)