3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = range(0, 250_000); $b = range(250_000, 500_000); $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
float(0.01858997344970703)
Output for git.master_jit
float(0.01852107048034668)
Output for rfc.property-hooks
float(0.0185089111328125)

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