3v4l.org

run code in 300+ PHP versions simultaneously
$elapsed = microtime(true) - $start; var_dump($elapsed); $elapsed = microtime(true) - $start; var_dump($elapsed); <?php $a = range(0, 250_000); $b = range(250_000, 500_000); $start = microtime(true); foreach(array_merge($a, $b) as $key => $item){ // } $elapsed = microtime(true) - $start; var_dump($elapsed); $gen = function(array ...$input):iterable{foreach($input as $it) {yield from $it;}}; $start = microtime(true); foreach($gen($a, $b) as $key => $item){ // } $elapsed = microtime(true) - $start; var_dump($elapsed);
Output for git.master
$elapsed = microtime(true) - $start; var_dump($elapsed); $elapsed = microtime(true) - $start; var_dump($elapsed); float(0.008083105087280273) float(0.009933948516845703)
Output for git.master_jit
$elapsed = microtime(true) - $start; var_dump($elapsed); $elapsed = microtime(true) - $start; var_dump($elapsed); float(0.007016897201538086) float(0.009975910186767578)
Output for rfc.property-hooks
$elapsed = microtime(true) - $start; var_dump($elapsed); $elapsed = microtime(true) - $start; var_dump($elapsed); float(0.008990049362182617) float(0.009428977966308594)

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.7 ms | 408 KiB | 5 Q