3v4l.org

run code in 150+ 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 5.4.0 - 5.4.12
Parse error: syntax error, unexpected end of file in /in/mvOlH on line 13
Process exited with code 255.
Output for 5.3.0 - 5.3.22
Parse error: syntax error, unexpected $end in /in/mvOlH on line 13
Process exited with code 255.