3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Initial Configurationglobal $aHash;$i   = 0;$tmp = '';while($i < 10000) {  $tmp .= 'a';  ++$i;}$aHash = array_fill(100000000000000000000000, 100, $tmp);unset($i, $tmp);// Test Sourcefunction Test2_3() {    global $aHash;    /* The Test */    $t = microtime(true);    $key = array_keys($aHash);    $size = sizeOf($key);    for ($i=0; $i<$size; $i++) $aHash[$key[$i]] .= "a";    return (microtime(true) - $t);}// Variable Clean-upfunction Test2_End() {    global $aHash;    unset($aHash);}
Output for git.master, git.master_jit, rfc.property-hooks

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:
38.42 ms | 401 KiB | 8 Q