3v4l.org

run code in 300+ PHP versions simultaneously
<?php $num = (PHP_INT_MAX * 2) + 1 echo dechex($num); echo "\n"; echo dechex(-1);
Output for 5.4.0 - 5.4.17, 5.5.0
Parse error: syntax error, unexpected 'echo' (T_ECHO) in /in/4Xumj 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/4Xumj on line 3
Process exited with code 255.

preferences:
179.74 ms | 1395 KiB | 53 Q