3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo ($x = '2d9'.PHP_EOL); $x++; echo ($x); // interprets '2d9' as hex, now $x == '2e0' $x++; echo ($x); // interprets '2e0' as a float, now $x == 3
Output for 8.3.0 - 8.3.4
2d9 Deprecated: Increment on non-alphanumeric string is deprecated in /in/vOCbF on line 4 2d9 Deprecated: Increment on non-alphanumeric string is deprecated in /in/vOCbF on line 6 2d9
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17
2d9 2d9 2d9

preferences:
141.79 ms | 403 KiB | 170 Q