3v4l.org

run code in 300+ PHP versions simultaneously
<?php $all = []; for( $i=0; $i<1000; $i++ ) { for( $j=0; $j<1000; $j++ ) { $all[$i][$j] = $j; } } $start = microtime(true); $mergedArray = array_merge(...$all); echo PHP_EOL . 'Array merge time: ' . microtime(true); $mergedArray = []; $start = microtime(true); foreach($all as &$templateClosingArray) { $mergedArray += $templateClosingArray; } echo PHP_EOL . 'Union time: ' . microtime(true);
Output for git.master_jit
Array merge time: 1761814458.1074 Union time: 1761814458.1188
Output for git.master
Array merge time: 1761814458.0884 Union time: 1761814458.0984

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:
28.1 ms | 406 KiB | 5 Q