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"; $found = []; $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.00012588500976562 array_filter: 0.00029182434082031
Output for git.master
foreach: 0.00014114379882812 array_filter: 0.00026607513427734

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