3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(); $array[1]['source'] = 'hello'; $array[1]['destination'] = 'bye'; foreach ($array as $key => $arr) { print_r($arr); }

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.0150.00016.63
8.3.50.0060.01317.56
8.3.40.0140.00418.87
8.3.30.0150.00318.79
8.3.20.0030.00518.79
8.3.10.0080.00020.53
8.3.00.0080.00019.26
8.2.180.0100.00516.50
8.2.170.0170.00322.96
8.2.160.0000.01420.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00020.45
8.2.110.0060.00319.39
8.2.100.0080.00418.03
8.2.90.0060.00319.42
8.2.80.0040.00419.34
8.2.70.0030.00517.50
8.2.60.0030.00618.05
8.2.50.0000.00818.07
8.2.40.0040.00418.16
8.2.30.0000.00717.98
8.2.20.0060.00319.61
8.2.10.0030.00617.74
8.2.00.0070.00317.70
8.1.280.0080.00625.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00721.95
8.1.230.0110.00020.89
8.1.220.0060.00317.77
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0080.00017.30
8.1.180.0080.00018.10
8.1.170.0060.00318.82
8.1.160.0000.00718.93
8.1.150.0040.00418.73
8.1.140.0040.00417.50
8.1.130.0030.00317.94
8.1.120.0000.00717.49
8.1.110.0040.00417.31
8.1.100.0040.00417.49
8.1.90.0000.00717.38
8.1.80.0030.00317.46
8.1.70.0030.00317.36
8.1.60.0040.00417.62
8.1.50.0070.00017.38
8.1.40.0080.00017.59
8.1.30.0040.00417.60
8.1.20.0000.00817.70
8.1.10.0000.00817.48
8.1.00.0030.00517.48
8.0.300.0040.00419.90
8.0.290.0000.00716.63
8.0.280.0050.00318.52
8.0.270.0030.00317.17
8.0.260.0030.00316.73
8.0.250.0000.00817.00
8.0.240.0070.00016.95
8.0.230.0000.00716.94
8.0.220.0050.00316.79
8.0.210.0080.00016.91
8.0.200.0000.00816.83
8.0.190.0000.00816.98
8.0.180.0000.00716.93
8.0.170.0000.01016.86
8.0.160.0000.00716.89
8.0.150.0050.00316.76
8.0.140.0000.00716.75
8.0.130.0030.00313.28
8.0.120.0060.00316.86
8.0.110.0040.00416.90
8.0.100.0050.00316.92
8.0.90.0040.00416.91
8.0.80.0090.00916.88
8.0.70.0000.00816.73
8.0.60.0040.00416.85
8.0.50.0070.00016.92
8.0.30.0100.00717.04
8.0.20.0090.00917.15
8.0.10.0040.00417.01
8.0.00.0070.01016.77
7.4.330.0000.00512.99
7.4.320.0060.00016.51
7.4.300.0000.00616.61
7.4.290.0040.00416.53
7.4.280.0000.00716.46
7.4.270.0030.00316.49
7.4.260.0030.00313.28
7.4.250.0060.00316.35
7.4.240.0000.00716.55
7.4.230.0000.00716.71
7.4.220.0150.00716.46
7.4.210.0060.00816.51
7.4.200.0030.00316.49
7.4.190.0030.00316.66
7.4.160.0120.00416.59
7.4.150.0110.00616.56
7.4.140.0130.01016.45
7.4.130.0140.00616.57
7.4.120.0100.00616.61
7.4.110.0090.00916.61
7.4.100.0070.01416.65
7.4.90.0140.00416.65
7.4.80.0100.00719.39
7.4.70.0150.00616.48
7.4.60.0120.00616.56
7.4.50.0050.00016.71
7.4.40.0070.00516.59
7.4.30.0080.00816.72
7.4.00.0040.01114.95
7.3.330.0060.00013.19
7.3.320.0040.00413.21
7.3.310.0030.00316.38
7.3.300.0030.00316.33
7.3.290.0100.00516.35
7.3.280.0090.00616.36
7.3.270.0070.01116.43
7.3.260.0090.01316.36
7.3.250.0100.00816.33
7.3.240.0060.01516.55
7.3.230.0080.00816.39
7.3.210.0130.00316.29
7.3.200.0140.00316.37
7.3.190.0160.00016.55
7.3.180.0080.01116.28
7.3.170.0070.01016.70
7.3.160.0130.00316.44
7.3.120.0000.01415.04
7.2.330.0100.00716.44
7.2.320.0130.01016.52
7.2.310.0040.01816.43
7.2.300.0070.01016.60
7.2.290.0180.00416.41
7.2.00.0090.00319.52
7.1.100.0060.00918.32
7.1.70.0090.00016.86
7.1.60.0100.01419.31
7.1.50.0080.00316.93
7.1.00.0100.07022.45
7.0.200.0170.00314.80
7.0.140.0070.07021.95
7.0.120.0000.03722.19
7.0.60.0100.06719.97
7.0.50.0100.05317.86
7.0.40.0170.07017.70
7.0.30.0100.04017.68
7.0.20.0100.08317.68
7.0.10.0070.08717.66
7.0.00.0030.08717.79
5.6.280.0030.07320.90
5.6.210.0030.07720.59
5.6.200.0070.08318.12
5.6.190.0100.07718.09
5.6.180.0070.08318.11
5.6.170.0030.04718.23
5.6.160.0070.08318.11
5.6.150.0130.06318.19
5.6.140.0100.08018.22
5.6.130.0070.08318.21
5.6.120.0070.04318.15
5.6.110.0030.09018.12
5.6.100.0070.07318.17
5.6.90.0030.05018.10
5.6.80.0170.04717.50
5.6.70.0030.07017.50
5.6.60.0030.05017.50
5.6.50.0100.04717.57
5.6.40.0130.06317.50
5.6.30.0100.04717.54
5.6.20.0030.06017.57
5.6.10.0030.05717.53
5.6.00.0070.04317.50
5.5.350.0300.07720.43
5.5.340.0070.07717.93
5.5.330.0000.04717.98
5.5.320.0130.07717.95
5.5.310.0100.08018.01
5.5.300.0070.08318.02
5.5.290.0000.05317.91
5.5.280.0000.04718.01
5.5.270.0070.05018.03
5.5.260.0130.07018.00
5.5.250.0100.03717.73
5.5.240.0030.04317.37
5.5.230.0100.07017.25
5.5.220.0100.07317.30
5.5.210.0070.04017.32
5.5.200.0070.07717.30
5.5.190.0070.05317.36
5.5.180.0030.08017.36
5.5.160.0030.07317.33
5.5.150.0130.07017.32
5.5.140.0100.04717.33
5.5.130.0170.03017.22
5.5.120.0030.04317.22
5.5.110.0070.06317.38
5.5.100.0100.05317.23
5.5.90.0130.02717.19
5.5.80.0070.05317.16
5.5.70.0070.05317.26
5.5.60.0030.04717.27
5.5.50.0000.05717.25
5.5.40.0030.04017.14
5.5.30.0100.03317.15
5.5.20.0100.03317.20
5.5.10.0070.05317.19
5.5.00.0130.06717.14
5.4.450.0100.07319.41
5.4.440.0100.07319.40
5.4.430.0130.04319.30
5.4.420.0070.07019.30
5.4.410.0100.03319.14
5.4.400.0030.04319.25
5.4.390.0070.06019.09
5.4.380.0070.07319.04
5.4.370.0130.07319.12
5.4.360.0100.06318.82
5.4.350.0030.04718.97
5.4.340.0030.07018.95
5.4.320.0070.07718.98
5.4.310.0130.03718.98
5.4.300.0070.05018.98
5.4.290.0100.03318.82
5.4.280.0070.03719.02
5.4.270.0030.07319.20
5.4.260.0030.05718.98
5.4.250.0100.03318.98
5.4.240.0030.04718.98
5.4.230.0000.04019.09
5.4.220.0130.07718.81
5.4.210.0070.07718.97
5.4.200.0070.07319.11
5.4.190.0130.03018.94
5.4.180.0100.03018.98
5.4.170.0000.06018.81
5.4.160.0130.05718.96
5.4.150.0030.04019.10
5.4.140.0130.06716.27
5.4.130.0130.05316.29
5.4.120.0000.06316.34
5.4.110.0030.07716.24
5.4.100.0030.05016.41
5.4.90.0030.05316.41
5.4.80.0030.05316.26
5.4.70.0070.07016.34
5.4.60.0100.05016.50
5.4.50.0070.06016.25
5.4.40.0100.04016.25
5.4.30.0030.05716.23
5.4.20.0100.06316.40
5.4.10.0000.06716.34
5.4.00.0100.03015.70
5.3.290.0070.07014.63
5.3.280.0070.07014.54
5.3.270.0070.04714.58
5.3.260.0030.06314.57
5.3.250.0070.04014.42
5.3.240.0000.07014.59
5.3.230.0030.05714.45
5.3.220.0100.07314.50
5.3.210.0000.07014.55
5.3.200.0070.07714.49
5.3.190.0100.07314.52
5.3.180.0070.04714.50
5.3.170.0030.04014.41
5.3.160.0100.04314.39
5.3.150.0070.07714.48
5.3.140.0030.06014.53
5.3.130.0070.04714.38
5.3.120.0070.08014.46
5.3.110.0030.06314.54
5.3.100.0070.06714.02
5.3.90.0070.06713.93
5.3.80.0030.07713.97
5.3.70.0070.06713.95
5.3.60.0100.06313.92
5.3.50.0000.04713.71
5.3.40.0000.08013.88
5.3.30.0070.07713.66
5.3.20.0030.05313.65
5.3.10.0030.05013.59
5.3.00.0030.06713.59
5.2.170.0000.03711.09
5.2.160.0070.02711.13
5.2.150.0070.04710.96
5.2.140.0130.05011.09
5.2.130.0070.05711.07
5.2.120.0070.05711.13
5.2.110.0000.04711.02
5.2.100.0070.05711.02
5.2.90.0130.05311.09
5.2.80.0030.06311.05
5.2.70.0000.03311.03
5.2.60.0000.07011.02
5.2.50.0070.03710.84
5.2.40.0030.03310.95
5.2.30.0000.06310.97
5.2.20.0030.06310.96
5.2.10.0000.06310.70
5.2.00.0130.02310.70
5.1.60.0070.03010.00
5.1.50.0030.05310.02
5.1.40.0030.0509.97
5.1.30.0070.03710.36
5.1.20.0030.04710.24
5.1.10.0100.04010.05
5.1.00.0000.0579.98
5.0.50.0000.0508.58
5.0.40.0000.0338.44
5.0.30.0070.0638.36
5.0.20.0070.0408.21
5.0.10.0000.0508.36
5.0.00.0000.0478.25
4.4.90.0070.0337.73
4.4.80.0030.0377.73
4.4.70.0000.0407.73
4.4.60.0070.0337.73
4.4.50.0070.0177.73
4.4.40.0000.0577.73
4.4.30.0000.0237.73
4.4.20.0000.0337.73
4.4.10.0070.0307.73
4.4.00.0070.0537.73
4.3.110.0000.0207.73
4.3.100.0000.0307.73
4.3.90.0030.0207.73
4.3.80.0000.0377.73
4.3.70.0000.0237.73
4.3.60.0000.0377.73
4.3.50.0070.0307.73
4.3.40.0070.0337.73
4.3.30.0000.0277.73
4.3.20.0000.0207.73
4.3.10.0000.0237.73
4.3.00.0000.0207.73

preferences:
45.9 ms | 401 KiB | 5 Q