3v4l.org

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