3v4l.org

run code in 300+ PHP versions simultaneously
<?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/v3gXf on line 13
Process exited with code 255.
Output for 5.3.0 - 5.3.22
Parse error: syntax error, unexpected $end in /in/v3gXf on line 13
Process exited with code 255.

preferences:
173.94 ms | 1386 KiB | 43 Q