3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = '0w95'; print "$x\n"; for ($i=0; $i<20; $i++){ $x++; print "$x\n"; }
Output for 7.0.0 - 7.0.25, 7.1.0 - 7.1.33, 7.2.6 - 7.2.33, 7.3.0 - 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, 8.3.0 - 8.3.4
0w95 0w96 0w97 0w98 0w99 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x10 0x11 0x12 0x13 0x14 0x15
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.30
0w95 0w96 0w97 0w98 0w99 0x00 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

preferences:
200.58 ms | 401 KiB | 275 Q