3v4l.org

run code in 300+ PHP versions simultaneously
<?php $all = array(array("class"=>array(array("peter","15","male"),array("mary","24","female"),array("jason","22","male")))); print_r($all); function merge($prev,$now){ for($i=0,$i++,$i=2){ return array_merge($prev,$now['class'][$i]); } } $cc = array_reduce($all,"merge",array()); print_r($cc);

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)
5.4.320.0500.06719.08
5.4.310.0400.04019.13
5.4.300.0670.05318.85
5.4.290.0400.04318.99
5.4.280.0530.06319.22
5.4.270.0570.06719.08
5.4.260.0370.04319.06
5.4.250.0400.03718.94
5.4.240.0430.04019.20
5.4.230.0470.07019.23
5.4.220.0230.03318.94
5.4.210.0170.04019.30
5.4.200.0430.04718.86
5.4.190.0370.04318.93
5.4.180.0300.03719.15
5.4.170.0370.05018.86
5.4.160.0400.06718.97
5.4.150.0430.06019.13
5.4.140.0330.03316.36
5.4.130.0500.03716.34
5.4.120.0400.04016.34
5.4.110.0470.06016.35
5.4.100.0370.03316.26
5.4.90.0370.03716.36
5.4.80.0370.04316.35
5.4.70.0370.03716.24
5.4.60.0500.06016.59
5.4.50.0470.06016.48
5.4.40.0330.04316.48
5.4.30.0500.03716.51
5.4.20.0430.03716.32
5.4.10.0530.06016.38
5.4.00.0500.05715.83
5.3.290.0530.05314.71
5.3.280.0430.04314.59
5.3.270.0300.03714.52
5.3.260.0400.07014.68
5.3.250.0430.05714.69
5.3.240.0300.03714.60
5.3.230.0400.04714.68
5.3.220.0500.06014.58
5.3.210.0400.04014.53
5.3.200.0470.06714.48
5.3.190.0330.04014.65
5.3.180.0400.04014.55
5.3.170.0430.04314.72
5.3.160.0400.04014.68
5.3.150.0430.04014.46
5.3.140.0630.04014.55
5.3.130.0530.04714.53
5.3.120.0470.03714.55
5.3.110.0470.06714.55
5.3.100.0370.05014.01
5.3.90.0500.02314.18
5.3.80.0470.05013.95
5.3.70.0430.05014.00
5.3.60.0370.05013.92
5.3.50.0470.04014.07
5.3.40.0370.04013.85
5.3.30.0370.05713.98
5.3.20.0400.04713.77
5.3.10.0470.06313.73
5.3.00.0430.05313.57
5.2.170.0400.04311.15
5.2.160.0370.05011.08
5.2.150.0300.03011.15
5.2.140.0330.03011.16
5.2.130.0370.03011.33
5.2.120.0370.04711.10
5.2.110.0330.02711.05
5.2.100.0370.03011.26
5.2.90.0430.03711.00
5.2.80.0400.03011.00
5.2.70.0070.03011.11
5.2.60.0030.06311.01
5.2.50.0200.06011.03
5.2.40.0170.03311.05
5.2.30.0330.05010.89
5.2.20.0230.04711.12
5.2.10.0400.03710.77
5.2.00.0370.05010.69
5.1.60.0330.04310.00
5.1.50.0270.03310.08
5.1.40.0300.03310.13
5.1.30.0370.05010.26
5.1.20.0430.04310.26
5.1.10.0300.02710.05
5.1.00.0270.02710.31
5.0.50.0270.0308.48
5.0.40.0200.0238.30
5.0.30.0130.0508.31
5.0.20.0230.0308.29
5.0.10.0170.0378.07
5.0.00.0200.0338.09
4.4.90.0030.0137.77
4.4.80.0130.0277.77
4.4.70.0200.0137.77
4.4.60.0100.0207.77
4.4.50.0170.0177.77
4.4.40.0200.0307.77
4.4.30.0200.0237.77
4.4.20.0200.0177.77
4.4.10.0230.0237.77
4.4.00.0200.0507.77
4.3.110.0230.0237.77
4.3.100.0100.0307.77
4.3.90.0130.0277.77
4.3.80.0130.0277.77
4.3.70.0200.0307.77
4.3.60.0170.0207.77
4.3.50.0200.0237.77
4.3.40.0170.0307.77
4.3.30.0070.0177.77
4.3.20.0130.0177.77
4.3.10.0100.0307.77
4.3.00.0070.0237.77

preferences:
138.05 ms | 1394 KiB | 7 Q