3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = "122E-1x"; var_dump((float)$x); var_dump((int)$x);
Output for 7.1.0 - 7.2.8
float(12.2) int(12)
Output for 4.3.0 - 7.0.20
float(12.2) int(122)