3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($x=1;$x<24;$x++) { #var_dump($x / 2); $bla= round_up($x /2,0); echo $bla."\n"; } function round_up($number, $precision = 2){ $fig = (int) str_pad('1', $precision, '0'); return (ceil($number * $fig) / $fig); } ?>
Output for git.master, git.master_jit
Parse error: syntax error, unexpected variable "$precision ", expecting ")" in /in/NXMNF on line 10
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
149.79 ms | 1399 KiB | 9 Q