3v4l.org

run code in 500+ PHP versions simultaneously
<?php foreach([1,2,3,18,19,308,309] as $n) { echo "1e$n\t" . sprintf('=> %d', "1e$n") . PHP_EOL; }
Output for 7.4.0 - 7.4.33, 8.0.1 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.32, 8.3.0 - 8.3.33, 8.4.1 - 8.4.24, 8.5.2 - 8.5.9
1e1 => 10 1e2 => 100 1e3 => 1000 1e18 => 1000000000000000000 1e19 => 9223372036854775807 1e308 => 9223372036854775807 1e309 => 0
Output for 8.5.0 - 8.5.1
1e1 => 10 1e2 => 100 1e3 => 1000 1e18 => 1000000000000000000 Warning: The float-string "1e19" is not representable as an int, cast occurred in /in/KkVAZ on line 4 1e19 => 9223372036854775807 Warning: The float-string "1e308" is not representable as an int, cast occurred in /in/KkVAZ on line 4 1e308 => 9223372036854775807 Warning: The float-string "1e309" is not representable as an int, cast occurred in /in/KkVAZ on line 4 1e309 => 0

preferences:
99.66 ms | 1300 KiB | 4 Q