3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ( $totaltime = 0; $totaltime < 11; $totaltime += 0.5 ) { switch ( true ) { case ( $totaltime < 1 ): echo $totaltime . " That was fast!\n"; break; case ( $totaltime < 10 ): echo $totaltime . " Not fast!\n"; break; default: echo $totaltime . " That's slooooow\n"; break; } }
Output for git.master, git.master_jit, rfc.property-hooks
0 That was fast! 0.5 That was fast! 1 Not fast! 1.5 Not fast! 2 Not fast! 2.5 Not fast! 3 Not fast! 3.5 Not fast! 4 Not fast! 4.5 Not fast! 5 Not fast! 5.5 Not fast! 6 Not fast! 6.5 Not fast! 7 Not fast! 7.5 Not fast! 8 Not fast! 8.5 Not fast! 9 Not fast! 9.5 Not fast! 10 That's slooooow 10.5 That's slooooow

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:
26.89 ms | 406 KiB | 5 Q