3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $num = "0xa"; echo $num + 3,"\n"; // 0 echo hexdec($num) + 3;
based on Nae5e
Output for 7.1.0 - 7.2.0
Notice: A non well formed numeric value encountered in /in/KircB on line 4 3 13
Output for 7.0.0 - 7.0.20
3 13
Output for 5.3.19 - 5.6.28
13 13