3v4l.org

run code in 500+ PHP versions simultaneously
<?php $numbers = range(0,10000); $start = microtime(true); $found = []; foreach($numbers as $num){ if($num > 1000 && $num < 6000){ $found[] = $num; } } $end = microtime(true); echo "foreach: ".$end - $start."\n"; $start = microtime(true); function FoundValues($num){ return $num > 1000 && $num < 6000; } $found = array_filter($numbers, 'FoundValues'); $end = microtime(true); echo "array_filter: ".$end - $start;
Output for git.master_jit
foreach: 0.0001990795135498 array_filter: 0.00044417381286621
Output for git.master
foreach: 0.0001380443572998 array_filter: 0.00027298927307129

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:
57.95 ms | 741 KiB | 4 Q