3v4l.org

run code in 300+ PHP versions simultaneously
<?php $num = (PHP_INT_MAX * 2) + 1 echo dechex((float)$num); echo "\n"; echo dechex(-1);
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected 'echo' (T_ECHO) in /in/FSW9n on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.26
Parse error: syntax error, unexpected T_ECHO in /in/FSW9n on line 3
Process exited with code 255.

preferences:
187.4 ms | 1399 KiB | 52 Q