3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo ("0x15" + 1),"\n"; //0x16 == 22 var_dump("0x" . dechex(15) + 0); //15 echo (("0x" . dechex(15)) + 1); //16
based on bXlqB
Output for 7.1.0 - 7.2.0
Notice: A non well formed numeric value encountered in /in/WrQuW on line 2 1 Notice: A non well formed numeric value encountered in /in/WrQuW on line 3 int(0) Notice: A non well formed numeric value encountered in /in/WrQuW on line 4 1
Output for 7.0.0 - 7.0.20
1 int(0) 1
Output for 5.3.19 - 5.6.28
22 int(15) 16