3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startTime = $this->microtime_float(); for ($i = 0; $i < $runCount; $i++) { if ($i == -1) { } elseif ($i == -2) { } else if ($i == -3) { } } $time = $this->microtime_float() - $startTime; echo str_pad("If/Else", 27) . " : " . number_format($time, 3) . " sec.\n"; return $time;
Output for git.master, git.master_jit
Fatal error: Uncaught Error: Using $this when not in object context in /in/LnR66:3 Stack trace: #0 {main} thrown in /in/LnR66 on line 3
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:
36.09 ms | 405 KiB | 5 Q