3v4l.org

run code in 300+ PHP versions simultaneously
<?php $aPools = []; $aPools[1] = [ 'Redeployment' => 100, 'TalentPool' => 500, ]; $aPools[2] = []; 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.60.0140.00716.88
8.3.50.0130.01316.69
8.3.40.0190.00318.83
8.3.30.0110.01118.90
8.3.20.0040.01420.13
8.3.10.0130.00321.82
8.3.00.0100.00720.94
8.2.180.0000.01618.41
8.2.170.0150.00622.96
8.2.160.0090.00620.34
8.2.150.0070.00025.66
8.2.140.0100.01324.66
8.2.130.0070.01721.05
8.2.120.0000.00826.35
8.2.110.0080.00320.47
8.2.100.0110.00417.70
8.2.90.0040.00419.17
8.2.80.0000.00818.05
8.2.70.0040.00817.49
8.2.60.0040.00417.93
8.2.50.0080.00018.10
8.2.40.0040.00420.47
8.2.30.0060.00321.10
8.2.20.0040.00418.04
8.2.10.0030.00518.13
8.2.00.0030.00518.05
8.1.280.0100.01025.92
8.1.270.0090.00922.14
8.1.260.0090.00926.35
8.1.250.0060.00328.09
8.1.240.0090.00023.83
8.1.230.0040.00722.21
8.1.220.0000.00817.80
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0050.00317.35
8.1.180.0050.00318.10
8.1.170.0080.00019.01
8.1.160.0040.00419.06
8.1.150.0000.00820.71
8.1.140.0090.00019.63
8.1.130.0040.00418.81
8.1.120.0040.00417.46
8.1.110.0080.00017.48
8.1.100.0000.00817.36
8.1.90.0040.00417.49
8.1.80.0040.00417.35
8.1.70.0000.00717.49
8.1.60.0060.00317.54
8.1.50.0050.00317.42
8.1.40.0000.00917.54
8.1.30.0000.00817.64
8.1.20.0000.00817.64
8.1.10.0030.00617.58
8.1.00.0000.00817.43
8.0.300.0030.00618.77
8.0.290.0050.00316.75
8.0.280.0030.00318.45
8.0.270.0000.00717.37
8.0.260.0000.00716.82
8.0.250.0070.00016.84
8.0.240.0000.00716.85
8.0.230.0040.00416.82
8.0.220.0000.00716.89
8.0.210.0050.00316.86
8.0.200.0070.00017.00
8.0.190.0030.00516.96
8.0.180.0040.00416.96
8.0.170.0030.00516.81
8.0.160.0000.01116.80
8.0.150.0040.00416.81
8.0.140.0070.00016.75
8.0.130.0060.00013.41
8.0.120.0000.00816.90
8.0.110.0040.00416.88
8.0.100.0050.00216.89
8.0.90.0000.00716.71
8.0.80.0180.00316.83
8.0.70.0000.00816.71
8.0.60.0000.00816.77
8.0.50.0040.00416.84
8.0.30.0150.00717.09
8.0.20.0070.01217.40
8.0.10.0070.00016.98
8.0.00.0080.01116.47
7.4.330.0030.00315.55
7.4.320.0020.00516.53
7.4.300.0030.00316.45
7.4.290.0030.00316.55
7.4.280.0060.00316.36
7.4.270.0070.00016.62
7.4.260.0000.00816.48
7.4.250.0070.00016.43
7.4.240.0030.00316.66
7.4.230.0070.00016.63
7.4.220.0090.01616.54
7.4.210.0080.00816.54
7.4.200.0040.00316.35
7.4.160.0100.00816.42
7.4.150.0120.00817.40
7.4.140.0120.01117.86
7.4.130.0110.00816.48
7.4.120.0120.00716.47
7.4.110.0170.00016.62
7.4.100.0070.01016.48
7.4.90.0060.01116.64
7.4.80.0090.00919.39
7.4.70.0030.01316.59
7.4.60.0080.00816.46
7.4.50.0040.01416.44
7.4.40.0120.00416.33
7.4.30.0070.01516.50
7.4.00.0030.01015.16
7.3.330.0050.00013.38
7.3.320.0050.00013.36
7.3.310.0000.00716.33
7.3.300.0000.00716.29
7.3.290.0020.01516.39
7.3.280.0080.01016.34
7.3.270.0060.01217.40
7.3.260.0130.00516.51
7.3.250.0140.00416.34
7.3.240.0050.01416.36
7.3.230.0090.01116.51
7.3.210.0110.00716.57
7.3.200.0060.00916.38
7.3.190.0150.00016.30
7.3.180.0100.01016.41
7.3.170.0130.00316.57
7.3.160.0050.01116.55
7.3.120.0080.00514.62
7.3.110.0120.00315.15
7.3.100.0070.00714.77
7.3.90.0040.01114.78
7.3.80.0090.00614.83
7.3.70.0030.01414.76
7.3.60.0060.00614.74
7.3.50.0000.01114.79
7.3.40.0030.01614.64
7.3.30.0030.00615.00
7.3.20.0030.01216.63
7.3.10.0100.00716.41
7.3.00.0130.00616.51
7.2.330.0090.00916.82
7.2.320.0100.00716.71
7.2.310.0040.01216.82
7.2.300.0060.01116.62
7.2.290.0070.01016.81
7.2.240.0060.00915.34
7.2.230.0040.01114.95
7.2.220.0070.00715.20
7.2.210.0030.01015.14
7.2.200.0120.00015.20
7.2.190.0070.01014.85
7.2.180.0040.01515.10
7.2.170.0100.00315.11
7.2.160.0060.01215.00
7.2.150.0080.00816.59
7.2.140.0100.00316.81
7.2.130.0130.00616.75
7.2.120.0090.00516.87
7.2.110.0110.00716.74
7.2.100.0100.00616.92
7.2.90.0060.00616.89
7.2.80.0080.00816.85
7.2.70.0050.00816.83
7.2.60.0090.01016.88
7.2.50.0030.00816.85
7.2.40.0130.00716.90
7.2.30.0100.01116.90
7.2.20.0170.00516.84
7.2.10.0130.00916.80
7.2.00.0050.00917.81
7.1.330.0030.01015.90
7.1.320.0030.01015.85
7.1.310.0060.00315.73
7.1.300.0030.00615.81
7.1.290.0000.01115.85
7.1.280.0080.00415.78
7.1.270.0070.00315.84
7.1.260.0030.00915.49
7.1.250.0070.00715.83
7.1.200.0090.00615.69
7.1.100.0000.01318.29
7.1.70.0090.00917.10
7.1.60.0190.01035.18
7.1.50.0840.00934.73
7.1.40.0240.01734.38
7.1.30.0200.02034.64
7.1.20.0180.02234.69
7.1.10.0070.00716.64
7.1.00.0060.01316.69
7.0.200.0140.00316.79
7.0.190.0000.01416.70
7.0.180.0090.00916.21
7.0.170.0100.01016.26
7.0.160.0060.01316.21
7.0.150.0030.01016.06
7.0.140.0000.01616.39
7.0.130.0070.01416.70
7.0.120.0060.01416.41
7.0.110.0080.01216.30
7.0.100.0120.00816.37
7.0.90.0120.00916.52
7.0.80.0040.01416.29
7.0.70.0080.01116.54
7.0.60.0080.01116.17
7.0.50.0060.01216.52
7.0.40.0090.01116.52
7.0.30.0120.00816.53
7.0.20.0130.00616.41
7.0.10.0120.00616.36
7.0.00.0030.01616.58

preferences:
45.75 ms | 401 KiB | 5 Q