3v4l.org

run code in 200+ php & hhvm versions
<?php $res = 8 * pow(16,-1); echo base_convert("$res",10,16),"\n"; echo dechex($res),"\n"; printf("%x",$res);
Output for 4.3.0 - 7.3.1
5 0 0