3v4l.org

run code in 300+ PHP versions simultaneously
<?php function recursiveSet(&$array, $arg){ if(empty($arg)){ return $array; } $array[$arg] = array(); array_pop($arg); return recursiveSet(&$array,$arg); } $arra = array(); $arg = array('adfas','adfasdf','adsfadfa'); $stuff = recursiveSet(&$arra,$arg); print_r($arra);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.0.20.0270.05020.27
7.0.10.0000.09020.22
7.0.00.0030.08720.06
5.6.170.0300.03020.57
5.6.160.0130.08020.57
5.6.150.0000.05018.25
5.6.140.0000.09018.18
5.6.130.0070.08318.23
5.6.120.0070.05320.99
5.6.110.0130.06321.11
5.6.100.0070.07721.02
5.6.90.0130.05320.96
5.6.80.0130.05720.51
5.5.310.0300.06020.35
5.5.300.0100.07718.09
5.5.290.0130.07717.97
5.5.280.0100.08320.65
5.5.270.0000.04320.84
5.5.260.0070.03720.96
5.5.250.0030.06020.69
5.5.240.0170.07720.22

preferences:
143.5 ms | 1394 KiB | 7 Q