3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = '0w95'; print "$x\n"; for ($i=0; $i<20; $i++){ $x++; $y = $x+1; print "$x next: $y\n"; }
based on PRgpf
Output for 7.1.0 - 7.2.0
0w95 Notice: A non well formed numeric value encountered in /in/vAoUY on line 8 0w96 next: 1 Notice: A non well formed numeric value encountered in /in/vAoUY on line 8 0w97 next: 1 Notice: A non well formed numeric value encountered in /in/vAoUY on line 8 0w98 next: 1 Notice: A non well formed numeric value encountered in /in/vAoUY on line 8 0w99 next: 1 Notice: A non well formed numeric value encountered in /in/vAoUY on line 8 0x00 next: 1 Notice: A non well formed numeric value encountered in /in/vAoUY on line 8 0x01 next: 1 Notice: A non well formed numeric value encountered in /in/vAoUY on line 8 0x02 next: 1 Notice: A non well formed numeric value encountered in /in/vAoUY on line 8 0x03 next: 1 Notice: A non well formed numeric value encountered in /in/vAoUY on line 8 0x04 next: 1 Notice: A non well formed numeric value encountered in /in/vAoUY on line 8 0x05 next: 1 Notice: A non well formed numeric value encountered in /in/vAoUY on line 8 0x06 next: 1 Notice: A non well formed numeric value encountered in /in/vAoUY on line 8 0x07 next: 1 Notice: A non well formed numeric value encountered in /in/vAoUY on line 8 0x08 next: 1 Notice: A non well formed numeric value encountered in /in/vAoUY on line 8 0x09 next: 1 Notice: A non well formed numeric value encountered in /in/vAoUY on line 8 0x10 next: 1 Notice: A non well formed numeric value encountered in /in/vAoUY on line 8 0x11 next: 1 Notice: A non well formed numeric value encountered in /in/vAoUY on line 8 0x12 next: 1 Notice: A non well formed numeric value encountered in /in/vAoUY on line 8 0x13 next: 1 Notice: A non well formed numeric value encountered in /in/vAoUY on line 8 0x14 next: 1 Notice: A non well formed numeric value encountered in /in/vAoUY on line 8 0x15 next: 1
Output for 7.0.0 - 7.0.20
0w95 0w96 next: 1 0w97 next: 1 0w98 next: 1 0w99 next: 1 0x00 next: 1 0x01 next: 1 0x02 next: 1 0x03 next: 1 0x04 next: 1 0x05 next: 1 0x06 next: 1 0x07 next: 1 0x08 next: 1 0x09 next: 1 0x10 next: 1 0x11 next: 1 0x12 next: 1 0x13 next: 1 0x14 next: 1 0x15 next: 1
Output for 5.3.21 - 5.6.28
0w95 0w96 next: 1 0w97 next: 1 0w98 next: 1 0w99 next: 1 0x00 next: 1 1 next: 2 2 next: 3 3 next: 4 4 next: 5 5 next: 6 6 next: 7 7 next: 8 8 next: 9 9 next: 10 10 next: 11 11 next: 12 12 next: 13 13 next: 14 14 next: 15 15 next: 16