3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump('0d9' + 1); // 1 $foo = '0d9'; $foo += 1; var_dump($foo); // int(1) $foo = '0d9'; $foo++; var_dump($foo); // string(3) "0e0"
based on MQ41a
Output for 7.1.0 - 7.2.0
Notice: A non well formed numeric value encountered in /in/9T6XF on line 2 int(1) Notice: A non well formed numeric value encountered in /in/9T6XF on line 3 int(1) string(3) "0e0"
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.0.20
int(1) int(1) string(3) "0e0"
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/9T6XF on line 4
Process exited with code 255.