3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $r=1e50; var_dump($r); var_dump((int)$r);
based on TJnRd
Output for 4.3.3 - 5.0.1, 5.0.3 - 7.1.0
float(1.0E+50) int(0)
Output for 5.0.2
float(1.0E+50) int(9223372036854775807)
Output for 4.3.0 - 4.3.2
float(1.E+50) int(0)