3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump("0x15" + 1); //0x16 == 22 var_dump("0x" . dechex(15) + 0); //15 var_dump(("0x" . dechex(15)) + 1); //16
based on WrQuW
Output for 7.1.0 - 7.2.0
Notice: A non well formed numeric value encountered in /in/3iUHo on line 2 int(1) Notice: A non well formed numeric value encountered in /in/3iUHo on line 3 int(0) Notice: A non well formed numeric value encountered in /in/3iUHo on line 4 int(1)
Output for 7.0.0 - 7.0.20
int(1) int(0) int(1)
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.6.28
int(22) int(15) int(16)
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/3iUHo on line 4
Process exited with code 255.