3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('LOOP',1000000); class ClassA { static function a() { } } function b() { } function f1() { for($i=0; $i<LOOP; ++$i) { ClassA::a(); ClassA::a(); ClassA::a(); ClassA::a(); ClassA::a(); ClassA::a(); ClassA::a(); ClassA::a(); ClassA::a(); ClassA::a(); } } function f2() { for($i=0; $i<LOOP; ++$i) { b(); b(); b(); b(); b(); b(); b(); b(); b(); b(); } } $start = microtime(true); f1(); $stop = microtime(true); $time1 = $stop - $start; $start = microtime(true); f2(); $stop = microtime(true); $time2 = $stop - $start; echo $time1 . "\t"; echo $time2 . "\n";
Output for git.master
0.1133029460907 0.092410087585449
Output for git.master_jit
0.11384797096252 0.091234922409058

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:
43.99 ms | 401 KiB | 7 Q