3v4l.org

run code in 300+ PHP versions simultaneously
<?php $aPools = []; $aPools[1] = [ 'Redeployment' => 100, 'TalentPool' => 500, ]; function array_flatten($aArray) { $aOut = array(); foreach ($aArray as $mSubItem) { if(is_array($mSubItem)) { $aOut = array_merge($aOut, array_flatten($mSubItem)); } else { $aOut[] = $mSubItem; } } return $aOut; } print_r(array_flatten($aPools));

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)
8.3.70.0070.01418.30
8.3.60.0110.01116.63
8.3.50.0110.00716.41
8.3.40.0070.01518.49
8.3.30.0110.00318.87
8.3.20.0170.00020.21
8.3.10.0030.00621.73
8.3.00.0120.00619.23
8.2.190.0070.00716.58
8.2.180.0150.00616.50
8.2.170.0150.00022.96
8.2.160.0030.01020.37
8.2.150.0040.01424.18
8.2.140.0080.01124.66
8.2.130.0070.00021.17
8.2.120.0000.00726.35
8.2.110.0040.00420.94
8.2.100.0150.00417.76
8.2.90.0080.00019.21
8.2.80.0030.00517.97
8.2.70.0080.00417.50
8.2.60.0000.00718.05
8.2.50.0000.00818.10
8.2.40.0040.00420.55
8.2.30.0000.00820.97
8.2.20.0070.00018.15
8.2.10.0000.00718.00
8.2.00.0050.00218.12
8.1.280.0110.01125.92
8.1.270.0040.00422.20
8.1.260.0000.00926.35
8.1.250.0050.00328.09
8.1.240.0080.00023.96
8.1.230.0080.00319.15
8.1.220.0050.00317.79
8.1.210.0060.00318.77
8.1.200.0040.00417.35
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0040.00418.97
8.1.160.0040.00418.98
8.1.150.0070.00020.58
8.1.140.0000.01019.46
8.1.130.0030.00318.93
8.1.120.0000.00717.40
8.1.110.0040.00417.40
8.1.100.0070.00017.52
8.1.90.0000.00717.35
8.1.80.0030.00317.50
8.1.70.0000.00717.49
8.1.60.0040.00417.65
8.1.50.0050.00317.41
8.1.40.0040.00417.40
8.1.30.0000.00817.57
8.1.20.0000.00717.68
8.1.10.0020.00517.39
8.1.00.0040.00417.38
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0000.00718.39
8.0.270.0000.00717.32
8.0.260.0070.00016.88
8.0.250.0030.00316.98
8.0.240.0070.00016.90
8.0.230.0070.00016.92
8.0.220.0070.00016.96
8.0.210.0000.00716.90
8.0.200.0030.00316.97
8.0.190.0050.00316.93
8.0.180.0040.00416.90
8.0.170.0070.00016.85
8.0.160.0030.00516.75
8.0.150.0060.00316.92
8.0.140.0070.00016.77
8.0.130.0000.00513.33
8.0.120.0030.00616.78
8.0.110.0040.00416.84
8.0.100.0000.00716.87
8.0.90.0040.00416.71
8.0.80.0090.00616.83
8.0.70.0000.00716.90
8.0.60.0040.00416.96
8.0.50.0000.00816.74
8.0.30.0060.01116.95
8.0.20.0100.00817.40
8.0.10.0020.00516.89
8.0.00.0140.00416.61
7.4.330.0030.00315.55
7.4.320.0030.00316.41
7.4.300.0030.00316.52
7.4.290.0070.00016.52
7.4.280.0000.00816.55
7.4.270.0070.00016.52
7.4.260.0000.00716.54
7.4.250.0040.00416.39
7.4.240.0040.00416.61
7.4.230.0070.00016.32
7.4.220.0080.01116.48
7.4.210.0090.01316.41
7.4.200.0040.00416.68
7.4.160.0090.00616.43
7.4.150.0150.00317.40
7.4.140.0110.00917.86
7.4.130.0070.01016.39
7.4.120.0080.01016.46
7.4.110.0170.00016.48
7.4.100.0070.01016.45
7.4.90.0100.00716.45
7.4.80.0100.00619.39
7.4.70.0060.00916.50
7.4.60.0120.00316.56
7.4.50.0080.00616.39
7.4.40.0030.01216.51
7.4.30.0090.00616.65
7.4.00.0060.01014.91
7.3.330.0050.00013.32
7.3.320.0030.00313.18
7.3.310.0070.00016.27
7.3.300.0040.00416.25
7.3.290.0070.00716.32
7.3.280.0090.00816.35
7.3.270.0150.00417.40
7.3.260.0100.00816.39
7.3.250.0080.01216.45
7.3.240.0110.00916.49
7.3.230.0130.00516.28
7.3.210.0130.00316.32
7.3.200.0060.00916.32
7.3.190.0090.00616.73
7.3.180.0090.00616.43
7.3.170.0070.01416.23
7.3.160.0090.00616.44
7.3.120.0110.00614.82
7.3.110.0100.00714.93
7.3.100.0070.00914.90
7.3.90.0050.00814.92
7.3.80.0000.01114.82
7.3.70.0030.00814.88
7.3.60.0050.00714.84
7.3.50.0080.00214.93
7.3.40.0030.01014.76
7.3.30.0100.00414.76
7.3.20.0050.01016.83
7.3.10.0100.00516.45
7.3.00.0070.00916.66
7.2.330.0000.01916.67
7.2.320.0100.00716.67
7.2.310.0070.01016.36
7.2.300.0100.00616.83
7.2.290.0080.01016.60
7.2.250.0030.01415.10
7.2.240.0050.01515.11
7.2.230.0070.01015.04
7.2.220.0060.00415.15
7.2.210.0050.00615.12
7.2.200.0060.00614.92
7.2.190.0050.01115.06
7.2.180.0090.00014.93
7.2.170.0080.00914.92
7.2.130.0080.01016.83
7.2.120.0100.00516.87
7.2.110.0060.01016.71
7.2.100.0110.00516.70
7.2.90.0070.00916.67
7.2.80.0080.00616.97
7.2.70.0090.00916.76
7.2.60.0080.00516.74
7.2.50.0060.01216.84
7.2.40.0060.00916.92
7.2.30.0070.00716.92
7.2.20.0070.00716.85
7.2.10.0130.00316.60
7.2.00.0070.01016.86
7.1.330.0090.00515.68
7.1.320.0050.00515.88
7.1.310.0050.00615.76
7.1.300.0050.00915.89
7.1.290.0040.00715.88
7.1.280.0030.00815.84
7.1.270.0080.00615.91
7.1.260.0060.00715.93
7.1.250.0100.00515.42
7.1.240.0030.00715.56
7.1.230.0090.00615.99
7.1.220.0030.00715.86
7.1.210.0050.00515.91
7.1.200.0040.00815.83
7.1.190.0030.01016.00
7.1.180.0120.00315.59
7.1.170.0000.01015.63
7.1.160.0000.00815.77
7.1.150.0060.00615.63
7.1.140.0130.00015.91
7.1.130.0040.00715.79
7.1.120.0030.01015.77
7.1.110.0060.00315.85
7.1.100.0100.00615.80
7.1.90.0000.00915.95
7.1.80.0060.00615.59
7.1.70.0090.00616.33
7.1.60.0170.00925.49
7.1.50.0150.01325.30
7.1.40.0130.01225.06
7.1.30.0110.01125.07
7.1.20.0160.00625.19
7.1.10.0090.00716.19
7.1.00.0090.00616.22
7.0.330.0000.00815.41
7.0.320.0070.00715.29
7.0.310.0040.00715.22
7.0.300.0000.01615.47
7.0.290.0040.01215.61
7.0.280.0070.00715.62
7.0.270.0060.00915.40
7.0.260.0030.01015.37
7.0.250.0030.00715.61
7.0.240.0090.00615.38
7.0.230.0070.01015.63
7.0.220.0100.00315.36
7.0.210.0000.00815.45
7.0.200.0080.01016.00
7.0.190.0080.00716.17
7.0.180.0050.01015.98
7.0.170.0070.00815.92
7.0.160.0050.01015.92
7.0.150.0050.01015.80
7.0.140.0020.01615.79
7.0.130.0080.00616.03
7.0.120.0050.01316.04
7.0.110.0050.01015.84
7.0.100.0080.00715.93
7.0.90.0090.00715.90
7.0.80.0100.01015.99
7.0.70.0040.01015.83
7.0.60.0060.00915.73
7.0.50.0090.00816.02
7.0.40.0080.00614.96
7.0.30.0080.00714.98
7.0.20.0050.01014.99
7.0.10.0030.01014.93
7.0.00.0040.01014.85
5.6.380.0090.00014.69

preferences:
51.28 ms | 401 KiB | 5 Q