3v4l.org

run code in 300+ PHP versions simultaneously
<?php function to_pace($float_pace) { $fraction = $float_pace - floor($float_pace); $minutes = $float_pace - $fraction; $seconds = round($fraction * 60, 0); return sprintf("%02d:%02d", $minutes, $seconds); } echo $to_pace(5.08);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $to_pace in /in/6KjV9 on line 9 Fatal error: Uncaught Error: Value of type null is not callable in /in/6KjV9:9 Stack trace: #0 {main} thrown in /in/6KjV9 on line 9
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:
50.73 ms | 401 KiB | 8 Q