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(0e9)
based on HLuj3
Output for 7.1.0 - 7.2.0
Notice: A non well formed numeric value encountered in /in/MQ41a on line 2 int(1) Notice: A non well formed numeric value encountered in /in/MQ41a on line 3 int(1) string(3) "0e0"
Output for 5.3.21 - 7.0.20
int(1) int(1) string(3) "0e0"