3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $num = "0xa"; $hexstr = sprintf("%x",( $num + 3)); // 0 $hexstr2 = sprintf("%x", hexdec($num) + 3 ); var_dump($hexstr,$hexstr2);
based on C7Ch4