3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = (float) (PHP_INT_MAX ); $foo *= 2; if ($foo == 1.844674407371E+19) { echo "true"; } else { $expectedString = "1.844674407371E+19"; echo "$foo != ".$expectedString.PHP_EOL; $fooAsString = (string)$foo; if (strcmp($expectedString, $fooAsString) === 0) { echo "String representation is the same."; } }

preferences:
40.02 ms | 402 KiB | 5 Q