3v4l.org

run code in 300+ PHP versions simultaneously
<?php $config = array( 'test' => array( 'derp' => array( 'example' => true, 'test' => 'derp'), 'herpa' => 'derpa', 'perpa' => 'hurradur')); function flatten($array, $current_path='test') { $result = array(); foreach($array as $key => $val) { $path = $current_path . '.' . $key; if (is_array($val)) { $result = array_merge($result, flatten($val, $path)); } else { $result[$path] = $val; } } return $result; } var_dump(flatten($config));

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.0080.00818.31
8.3.50.0090.00922.04
8.3.40.0090.00618.84
8.3.30.0140.00019.07
8.3.20.0040.00420.33
8.3.10.0050.00321.92
8.3.00.0030.00522.39
8.2.180.0080.00616.63
8.2.170.0090.00622.96
8.2.160.0100.00320.93
8.2.150.0040.00424.18
8.2.140.0050.00524.66
8.2.130.0080.00026.16
8.2.120.0060.00319.36
8.2.110.0030.00721.94
8.2.100.0040.00817.91
8.2.90.0030.00519.34
8.2.80.0030.00518.03
8.2.70.0080.00017.63
8.2.60.0080.00017.93
8.2.50.0000.00818.07
8.2.40.0030.00618.22
8.2.30.0040.00418.14
8.2.20.0040.00417.64
8.2.10.0000.00717.63
8.2.00.0000.00717.65
8.1.280.0070.00725.92
8.1.270.0050.00323.79
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00623.83
8.1.230.0110.00019.09
8.1.220.0050.00317.79
8.1.210.0040.00418.77
8.1.200.0040.00917.25
8.1.190.0000.00817.55
8.1.180.0050.00318.10
8.1.170.0060.00318.64
8.1.160.0060.00321.91
8.1.150.0000.00818.55
8.1.140.0030.00517.46
8.1.130.0000.00817.79
8.1.120.0030.00417.45
8.1.110.0040.00417.41
8.1.100.0000.00717.50
8.1.90.0030.00417.46
8.1.80.0000.00717.44
8.1.70.0000.00717.41
8.1.60.0080.00017.58
8.1.50.0030.00617.52
8.1.40.0000.00717.41
8.1.30.0040.00417.56
8.1.20.0080.00017.66
8.1.10.0000.00717.59
8.1.00.0000.00717.47
8.0.300.0040.00418.77
8.0.290.0040.00417.16
8.0.280.0000.00818.45
8.0.270.0000.00817.21
8.0.260.0000.00716.89
8.0.250.0030.00316.97
8.0.240.0000.00716.85
8.0.230.0030.00316.86
8.0.220.0030.00316.79
8.0.210.0030.00316.87
8.0.200.0000.00616.84
8.0.190.0030.00617.02
8.0.180.0040.00416.83
8.0.170.0030.00616.92
8.0.160.0000.00716.96
8.0.150.0070.00016.93
8.0.140.0040.00416.77
8.0.130.0060.00013.29
8.0.120.0080.00016.76
8.0.110.0000.00716.91
8.0.100.0040.00416.89
8.0.90.0000.00716.93
8.0.80.0090.00616.83
8.0.70.0000.00716.71
8.0.60.0040.00416.78
8.0.50.0040.00416.95
8.0.30.0120.00616.98
8.0.20.0090.00917.40
8.0.10.0000.00716.89
8.0.00.0150.00516.63
7.4.330.0050.00015.09
7.4.320.0030.00316.46
7.4.300.0000.00616.52
7.4.290.0030.00316.50
7.4.280.0030.00316.50
7.4.270.0070.00016.52
7.4.260.0000.00716.54
7.4.250.0040.00416.46
7.4.240.0020.00516.58
7.4.230.0000.00716.70
7.4.220.0070.01116.68
7.4.210.0070.00816.61
7.4.200.0000.00716.57
7.4.190.0000.00716.61
7.4.160.0130.00416.63
7.4.150.0120.00617.40
7.4.140.0050.01417.86
7.4.130.0120.00916.61
7.4.120.0140.00316.65
7.4.110.0100.00716.57
7.4.100.0110.00516.63
7.4.90.0000.01916.52
7.4.80.0100.01019.39
7.4.70.0160.00016.52
7.4.60.0130.00816.57
7.4.50.0040.00016.46
7.4.40.0070.01022.77
7.4.30.0130.00316.32
7.4.10.0110.00615.01
7.4.00.0060.01114.91
7.3.330.0000.00513.20
7.3.320.0060.00013.33
7.3.310.0070.00016.33
7.3.300.0030.00316.21
7.3.290.0100.00716.31
7.3.280.0100.00916.33
7.3.270.0060.01217.40
7.3.260.0080.00816.52
7.3.250.0080.01116.46
7.3.240.0110.01116.40
7.3.230.0070.01016.39
7.3.210.0060.01516.39
7.3.200.0110.01119.39
7.3.190.0120.00616.50
7.3.180.0100.00616.52
7.3.170.0060.00916.50
7.3.160.0100.01316.39
7.3.130.0060.01114.75
7.3.120.0070.01014.88
7.3.110.0050.01314.82
7.3.100.0070.00815.04
7.3.90.0050.01114.75
7.3.80.0050.01014.84
7.3.70.0030.00814.75
7.3.60.0080.00814.72
7.3.50.0060.00914.81
7.3.40.0060.00614.75
7.3.30.0040.01014.81
7.3.20.0090.00416.62
7.3.10.0070.00816.67
7.3.00.0080.00416.65
7.2.330.0150.00616.79
7.2.320.0060.01416.50
7.2.310.0120.00916.64
7.2.300.0120.00916.73
7.2.290.0120.00516.69
7.2.260.0090.01014.95
7.2.250.0070.01015.20
7.2.240.0080.00915.01
7.2.230.0050.01214.98
7.2.220.0040.01114.88
7.2.210.0060.00915.09
7.2.200.0080.00815.05
7.2.190.0080.00915.08
7.2.180.0050.00815.03
7.2.170.0030.01015.03
7.2.160.0030.01215.10
7.2.150.0080.00617.00
7.2.140.0070.00816.87
7.2.130.0000.01517.01
7.2.120.0050.00516.82
7.2.110.0050.01016.95
7.2.100.0020.00916.75
7.2.90.0040.00817.06
7.2.80.0030.00816.93
7.2.70.0030.01216.91
7.2.60.0050.00916.85
7.2.50.0090.00516.76
7.2.40.0050.01316.87
7.2.30.0030.00916.89
7.2.20.0030.01316.96
7.2.10.0080.00816.98
7.2.00.0060.00817.71
7.1.330.0050.01115.84
7.1.320.0090.00715.83
7.1.310.0040.00815.66
7.1.300.0080.00815.91
7.1.290.0040.00815.78
7.1.280.0070.00715.81
7.1.270.0030.01115.71
7.1.260.0040.00615.61
7.1.250.0040.00815.89
7.1.240.0020.01115.73
7.1.230.0040.00915.77
7.1.220.0050.00915.94
7.1.210.0040.00915.80
7.1.200.0070.00715.82
7.1.190.0040.00915.85
7.1.180.0020.00815.85
7.1.170.0080.00915.88
7.1.160.0060.00515.87
7.1.150.0020.01115.84
7.1.140.0050.01215.79
7.1.130.0020.01115.81
7.1.120.0060.00815.71
7.1.110.0060.00515.78
7.1.100.0090.00616.62
7.1.90.0050.00915.93
7.1.80.0030.00915.72
7.1.70.0060.00516.09
7.1.60.0060.01117.21
7.1.50.0060.00916.12
7.1.40.0060.00915.89
7.1.30.0080.00715.90
7.1.20.0090.00615.75
7.1.10.0050.00615.79
7.1.00.0060.03017.99
7.0.330.0070.00515.48
7.0.320.0050.00815.40
7.0.310.0050.00615.27
7.0.300.0080.00215.42
7.0.290.0050.00615.33
7.0.280.0080.00815.25
7.0.270.0090.00315.26
7.0.260.0070.00715.37
7.0.250.0100.00315.43
7.0.240.0050.00815.34
7.0.230.0040.00615.42
7.0.220.0070.00615.26
7.0.210.0060.00715.50
7.0.200.0050.00515.74
7.0.190.0030.01015.41
7.0.180.0030.00915.47
7.0.170.0050.00615.35
7.0.160.0040.01115.52
7.0.150.0080.00315.38
7.0.140.0050.02717.69
7.0.130.0040.00615.25
7.0.120.0050.00615.48
7.0.110.0070.00615.42
7.0.100.0030.01015.49
7.0.90.0040.00915.44
7.0.80.0040.00915.46
7.0.70.0080.00515.36
7.0.60.0050.03316.86
7.0.50.0050.02616.39
7.0.40.0040.03615.61
7.0.30.0190.01415.69
7.0.20.0140.02915.71
7.0.10.0050.03615.60
7.0.00.0070.03415.65
5.6.400.0030.00814.37
5.6.390.0080.00514.61
5.6.380.0070.00514.54
5.6.370.0070.00414.28
5.6.360.0050.00914.55
5.6.350.0050.00514.49
5.6.340.0050.01014.54
5.6.330.0030.00814.51
5.6.320.0040.00814.64
5.6.310.0050.01014.33
5.6.300.0060.00614.51
5.6.290.0090.00614.37
5.6.280.0040.03116.51
5.6.270.0040.01114.47
5.6.260.0000.01314.72
5.6.250.0000.01414.33
5.6.240.0060.00514.39
5.6.230.0050.00914.55
5.6.220.0050.00714.25
5.6.210.0060.03716.54
5.6.200.0040.01915.71
5.6.190.0060.02316.46
5.6.180.1410.01816.33
5.6.170.0110.01816.32
5.6.160.0050.02616.52
5.6.150.0060.01815.68
5.6.140.0010.03615.65
5.6.130.0050.02715.61
5.6.120.0050.02416.64
5.6.110.0080.02316.60
5.6.100.0050.02016.55
5.6.90.0060.03316.68
5.6.80.0080.01616.64
5.6.70.1530.01816.27
5.6.60.0050.00814.31
5.6.50.0020.01314.31
5.6.40.0060.00514.39
5.6.30.0070.00714.27
5.6.20.0020.01414.27
5.6.10.0030.00614.26
5.6.00.0000.01214.26
5.5.380.0020.01114.39
5.5.370.0070.00714.68
5.5.360.0060.00414.19
5.5.350.0070.02816.46
5.5.340.0070.02615.55
5.5.330.0040.03516.55
5.5.320.0140.01816.29
5.5.310.0140.01616.24
5.5.300.0060.02015.54
5.5.290.0050.02215.75
5.5.280.0040.02416.68
5.5.270.0070.02016.50
5.5.260.0070.02816.54
5.5.250.0020.02216.30
5.5.240.0100.02116.28
5.5.230.0070.00814.35
5.5.220.0070.00714.24
5.5.210.0100.00314.36
5.5.200.0080.00414.49
5.5.190.0060.00814.43
5.5.180.0070.00414.39
5.5.170.0050.00514.23
5.5.160.0070.00814.01
5.5.150.0020.01114.31
5.5.140.0070.00714.17
5.5.130.0050.01014.27
5.5.120.0030.00914.21
5.5.110.0040.00814.11
5.5.100.0060.00814.33
5.5.90.0030.01214.21
5.5.80.0070.00614.25
5.5.70.0010.00714.47
5.5.60.0080.00714.12
5.5.50.0040.01114.39
5.5.40.0060.00814.36
5.5.30.0060.00614.13
5.5.20.0050.00614.44
5.5.10.0070.00514.17
5.5.00.0060.00814.36
5.4.450.0190.01914.47
5.4.440.0160.01414.35
5.4.430.0330.02214.42
5.4.420.0050.02214.44
5.4.410.0060.02414.38
5.4.400.0080.01814.21
5.4.390.0040.02314.15
5.4.380.0090.02014.11
5.4.370.0090.02214.21
5.4.360.0050.02214.16
5.4.350.0060.02414.15
5.4.340.0140.01814.14
5.4.330.0040.00411.85
5.4.320.0050.01712.09
5.4.310.0040.01812.01
5.4.300.0050.01611.99
5.4.290.0040.01812.08
5.4.280.0050.01512.08
5.4.270.0040.01712.08
5.4.260.0030.01812.10
5.4.250.0060.01512.03
5.4.240.0040.01912.10
5.4.230.0080.01211.91
5.4.220.0040.02011.95
5.4.210.0080.01611.96
5.4.200.0070.01612.02
5.4.190.0030.01812.03
5.4.180.0020.02212.01
5.4.170.0080.01412.04
5.4.160.0070.01512.07
5.4.150.0040.01712.13
5.4.140.0050.01811.88
5.4.130.0060.01412.02
5.4.120.0090.01211.87
5.4.110.0060.01611.88
5.4.100.0060.01511.83
5.4.90.0050.01711.90
5.4.80.0040.01511.96
5.4.70.0070.01211.96
5.4.60.0050.01511.97
5.4.50.0060.01411.92
5.4.40.0060.01411.99
5.4.30.0040.01611.95
5.4.20.0040.01712.00
5.4.10.0070.01711.93
5.4.00.0060.01811.77
5.3.290.0050.01712.05
5.3.280.0050.02011.97
5.3.270.0040.02211.94
5.3.260.0060.02012.02
5.3.250.0050.01912.00
5.3.240.0020.02011.89
5.3.230.0100.01711.96
5.3.220.0070.02011.94
5.3.210.0060.01711.97
5.3.200.0040.01911.88
5.3.190.0070.01411.90
5.3.180.0050.01511.98
5.3.170.0050.01812.00
5.3.160.0030.01711.94
5.3.150.0030.01612.01
5.3.140.0040.01611.99
5.3.130.0040.01711.91
5.3.120.0030.01912.00
5.3.110.0050.01711.97
5.3.100.0040.02111.81
5.3.90.0080.01411.74
5.3.80.0050.01911.68
5.3.70.0020.01711.76
5.3.60.0040.01611.71
5.3.50.0020.01811.66
5.3.40.0060.01611.70
5.3.30.0050.01611.73
5.3.20.0060.01611.67
5.3.10.0040.01711.51
5.3.00.0030.01611.57
5.2.170.0050.0329.18
5.2.160.0050.0309.19
5.2.150.0020.0329.18
5.2.140.0030.0319.18
5.2.130.0010.0329.14
5.2.120.0040.0289.14
5.2.110.0040.0299.14
5.2.100.0030.0299.16
5.2.90.0070.0309.15
5.2.80.0010.0369.14
5.2.70.0050.0309.13
5.2.60.0040.0319.09
5.2.50.0050.0299.06
5.2.40.0040.0299.04
5.2.30.0060.0289.02
5.2.20.0040.0309.01
5.2.10.0060.0268.92
5.2.00.0030.0338.77
5.1.60.0010.0278.05
5.1.50.0010.0278.05
5.1.40.0050.0238.04
5.1.30.0040.0268.39
5.1.20.0060.0248.41
5.1.10.0050.0258.14
5.1.00.0030.0288.13
5.0.50.0070.0196.61
5.0.40.0040.0216.47
5.0.30.0020.0336.29
5.0.20.0070.0176.25
5.0.10.0040.0266.23
5.0.00.0040.0306.23
4.4.90.0030.0154.78
4.4.80.0050.0134.75
4.4.70.0020.0164.75
4.4.60.0020.0154.75
4.4.50.0040.0144.77
4.4.40.0020.0264.71
4.4.30.0030.0214.76
4.4.20.0030.0194.85
4.4.10.0030.0154.85
4.4.00.0020.0264.76
4.3.110.0040.0164.67
4.3.100.0020.0154.67
4.3.90.0020.0154.64
4.3.80.0030.0234.59
4.3.70.0010.0164.63
4.3.60.0040.0134.63
4.3.50.0030.0154.63
4.3.40.0020.0254.54
4.3.30.0030.0153.29
4.3.20.0010.0173.28
4.3.10.0020.0153.23
4.3.00.0070.01315.11

preferences:
62.2 ms | 401 KiB | 5 Q