3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function bcdechex($dec) { $last = bcmod($dec, 16); $remain = bcdiv(bcsub($dec, $last), 16); if($remain == 0) { return dechex($last); } else { return bcdechex($remain).dechex($last); } } print bcdechex(319259235818);
Output for 4.3.0 - 7.2.0
4a555555ea