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 Test1_2() {    global $aHash;    /* The Test */    $t = microtime(true);    reset($aHash);    while(list(,$val) = each($aHash));    return (microtime(true) - $t);}// Variable Clean-upfunction Test1_End() {    global $aHash;    unset($aHash);}
Output for git.master, git.master_jit, rfc.property-hooks
<?php// Initial Configurationglobal $aHash;$i   = 0;$tmp = '';while($i < 10000) {  $tmp .= 'a';  ++$i;}$aHash = array_fill(100000000000000000000000, 100, $tmp);unset($i, $tmp);// Test Sourcefunction Test1_2() {    global $aHash;    /* The Test */    $t = microtime(true);    reset($aHash);    while(list(,$val) = each($aHash));    return (microtime(true) - $t);}// Variable Clean-upfunction Test1_End() {    global $aHash;    unset($aHash);}

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.07 ms | 402 KiB | 8 Q