3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php for($i=300;$i<350;$i++) { $n = (int)("1e" . (string)$i); var_dump($n . ""); var_dump((2*$n) . ""); }
based on iFCp6
Output for 7.1.0 - 7.3.0beta1
string(19) "9223372036854775807" string(18) "1.844674407371E+19" string(19) "9223372036854775807" string(18) "1.844674407371E+19" string(19) "9223372036854775807" string(18) "1.844674407371E+19" string(19) "9223372036854775807" string(18) "1.844674407371E+19" string(19) "9223372036854775807" string(18) "1.844674407371E+19" string(19) "9223372036854775807" string(18) "1.844674407371E+19" string(19) "9223372036854775807" string(18) "1.844674407371E+19" string(19) "9223372036854775807" string(18) "1.844674407371E+19" string(19) "9223372036854775807" string(18) "1.844674407371E+19" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0" string(1) "0"
Output for 5.6.0 - 5.6.30, hhvm-3.12.14 - 3.17.3, 7.0.0 - 7.0.20
string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2"