3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testPeople = array ( "Akey" => "A", "Bkey" => "B", "Ckey" => "C", "Dkey" => "D", "Ekey" => "E",'' => "F",'' => "G",'' => "H" ); echo count($testPeople); foreach($testPeople as $key => $people) { echo $key; }

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.0130.00718.30
8.3.50.0090.00918.16
8.3.40.0070.00718.71
8.3.30.0110.00718.96
8.3.20.0050.00320.20
8.3.10.0000.00821.86
8.3.00.0090.00019.25
8.2.180.0110.00416.38
8.2.170.0040.01122.96
8.2.160.0070.00720.43
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.38
8.2.110.0030.00619.39
8.2.100.0090.00317.74
8.2.90.0030.00519.28
8.2.80.0030.00517.97
8.2.70.0000.00817.50
8.2.60.0000.00818.04
8.2.50.0080.00018.07
8.2.40.0000.00818.22
8.2.30.0040.00417.98
8.2.20.0040.00417.68
8.2.10.0000.00718.12
8.2.00.0040.00417.74
8.1.280.0070.01425.92
8.1.270.0000.00820.43
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00623.97
8.1.230.0080.00417.64
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.22
8.1.190.0000.00817.35
8.1.180.0000.00918.10
8.1.170.0080.00020.38
8.1.160.0040.00421.98
8.1.150.0000.00818.89
8.1.140.0000.00717.50
8.1.130.0040.00417.74
8.1.120.0070.00017.50
8.1.110.0000.00717.44
8.1.100.0000.00817.39
8.1.90.0000.00717.41
8.1.80.0050.00217.43
8.1.70.0030.00317.34
8.1.60.0060.00317.57
8.1.50.0040.00417.43
8.1.40.0050.00317.51
8.1.30.0040.00417.55
8.1.20.0040.00417.57
8.1.10.0000.00717.42
8.1.00.0000.00917.36
8.0.300.0000.00718.77
8.0.290.0030.00616.75
8.0.280.0030.00318.45
8.0.270.0000.00717.26
8.0.260.0000.00617.14
8.0.250.0030.00316.95
8.0.240.0040.00416.98
8.0.230.0070.00016.97
8.0.220.0040.00416.90
8.0.210.0050.00216.80
8.0.200.0030.00316.95
8.0.190.0080.00017.04
8.0.180.0030.00516.90
8.0.170.0040.00416.93
8.0.160.0040.00416.89
8.0.150.0000.00716.80
8.0.140.0070.00016.75
8.0.130.0030.00313.32
8.0.120.0040.00416.86
8.0.110.0070.00016.87
8.0.100.0040.00416.85
8.0.90.0040.00416.72
8.0.80.0080.00916.93
8.0.70.0040.00416.96
8.0.60.0040.00416.83
8.0.50.0000.00816.74
8.0.30.0160.00517.05
8.0.20.0090.00917.40
8.0.10.0040.00417.04
8.0.00.0040.01516.72
7.4.330.0020.00215.14
7.4.320.0000.00716.55
7.4.300.0000.00616.65
7.4.290.0060.00316.43
7.4.280.0080.00416.51
7.4.270.0030.00316.46
7.4.260.0030.00316.51
7.4.250.0040.00416.56
7.4.240.0050.00216.46
7.4.230.0070.00016.50
7.4.220.0120.00616.62
7.4.210.0100.00316.64
7.4.200.0020.00516.69
7.4.160.0100.00716.31
7.4.150.0080.00817.40
7.4.140.0150.00717.86
7.4.130.0130.00516.49
7.4.120.0150.00316.54
7.4.110.0060.01916.41
7.4.100.0120.01216.60
7.4.90.0120.01016.43
7.4.80.0090.00919.39
7.4.70.0080.00816.57
7.4.60.0100.00616.54
7.4.50.0090.00016.69
7.4.40.0040.01516.35
7.4.30.0030.01416.54
7.4.00.0070.01114.85
7.3.330.0000.00613.21
7.3.320.0080.00813.12
7.3.310.0000.00716.35
7.3.300.0000.00616.26
7.3.290.0050.01016.27
7.3.280.0110.00616.23
7.3.270.0090.00917.40
7.3.260.0050.01116.32
7.3.250.0150.00716.29
7.3.240.0110.01016.39
7.3.230.0090.00916.39
7.3.210.0020.01416.43
7.3.200.0030.01319.39
7.3.190.0090.00616.17
7.3.180.0120.00316.23
7.3.170.0030.01316.52
7.3.160.0170.00616.46
7.2.330.0170.00416.62
7.2.320.0190.00316.35
7.2.310.0130.01016.62
7.2.300.0070.01016.50
7.2.290.0060.00916.27
7.2.60.0120.00416.47
7.2.00.0070.00419.23
7.1.200.0080.00015.90
7.1.100.0110.00418.23
7.1.70.0000.00717.25
7.1.60.0030.01019.50
7.1.50.0090.01516.92
7.1.00.0030.07722.36
7.0.200.0040.00716.56
7.0.140.0030.03322.08
7.0.60.0070.05719.82
7.0.50.0100.07017.75
7.0.40.0030.08719.96
7.0.30.0230.04020.17
7.0.20.0330.07020.03
7.0.10.0300.08020.16
7.0.00.0070.04720.01
5.6.210.0130.08020.62
5.6.200.0100.06318.18
5.6.190.0100.07320.60
5.6.180.0270.04320.58
5.6.170.0400.07720.45
5.6.160.0070.04320.41
5.6.150.0070.08018.21
5.6.140.0070.04018.09
5.6.130.0100.03318.15
5.6.120.0100.07321.10
5.6.110.0000.06720.86
5.6.100.0100.08320.96
5.6.90.0070.08320.96
5.6.80.0030.04020.28
5.6.70.0400.06020.38
5.5.350.0170.05020.46
5.5.340.0030.04318.02
5.5.330.0030.04320.15
5.5.320.0070.08020.12
5.5.310.0330.05720.30
5.5.300.0100.07717.91
5.5.290.0030.04017.89
5.5.280.0070.04020.98
5.5.270.0130.08020.89
5.5.260.0070.08320.77
5.5.250.0070.08020.58
5.5.240.0100.05020.28
5.4.450.1830.05019.45
5.4.440.1600.04019.42
5.4.430.1830.04319.40
5.4.420.0100.06719.24
5.4.410.0070.07019.44
5.4.400.0030.06018.92
5.4.390.1430.03718.93
5.4.380.1730.05019.16
5.4.370.1730.03718.92
5.4.360.1770.04718.78
5.4.350.1770.04718.80
5.4.340.1700.03719.16
5.4.320.0030.04018.96
5.4.310.0100.03719.06
5.4.300.0800.04319.09
5.4.290.1970.03319.10
5.4.280.1830.05019.08
5.4.270.1630.03719.08
5.4.260.1300.03719.08
5.4.250.2070.04018.80
5.4.240.1670.04019.12
5.4.230.1800.04319.21
5.4.220.1930.03319.14
5.4.210.1670.03718.91
5.4.200.1600.04018.88
5.4.190.1370.03718.90
5.4.180.0000.04019.14
5.4.170.0030.04319.08
5.4.160.0830.04318.89
5.4.150.1500.05019.13
5.4.140.1670.03316.48
5.4.130.1830.03316.27
5.4.120.1930.04716.31
5.4.110.1500.04716.43
5.4.100.1630.04316.39
5.4.90.1600.03716.23
5.4.80.1630.03316.24
5.4.70.1600.03716.05
5.4.60.1630.03016.40
5.4.50.2000.04016.45
5.4.40.0200.04316.36
5.4.30.0030.04316.20
5.4.20.0200.03316.46
5.4.10.1800.03716.17
5.4.00.1630.03315.73
5.3.290.1900.04314.50
5.3.280.1600.04714.53
5.3.270.1770.03714.45
5.3.260.1700.04314.44
5.3.250.1630.04014.55
5.3.240.1700.04014.55
5.3.230.1370.03714.54
5.3.220.1870.04314.40
5.3.210.1570.04714.61
5.3.200.0970.04014.41
5.3.190.0030.03714.40
5.3.180.0000.05714.65
5.3.170.1000.03314.46
5.3.160.1700.03314.55
5.3.150.1870.03014.50
5.3.140.1700.03714.43
5.3.130.1670.03714.59
5.3.120.1830.04014.59
5.3.110.1770.04314.40
5.3.100.1730.03713.98
5.3.90.1830.03013.95
5.3.80.1700.03013.85
5.3.70.1670.03313.97
5.3.60.1200.03313.94
5.3.50.0470.04013.79
5.3.40.0000.04313.82
5.3.30.0930.04013.82
5.3.20.1800.03713.57
5.3.10.1970.03313.70
5.3.00.1800.03713.50
5.2.170.1430.04010.99
5.2.160.1430.02711.15
5.2.150.1430.03011.00
5.2.140.1570.03710.98
5.2.130.1600.03711.04
5.2.120.1270.02311.13
5.2.110.1400.02311.18
5.2.100.1230.03310.95
5.2.90.1500.03311.04
5.2.80.0330.03310.98
5.2.70.0000.03011.05
5.2.60.0030.03711.22
5.2.50.0670.03310.95
5.2.40.1100.03010.85
5.2.30.1170.03010.82
5.2.20.1200.02011.00
5.2.10.0930.03710.93
5.2.00.1100.03310.68
5.1.60.1070.0279.88
5.1.50.1370.03010.11
5.1.40.1070.02310.06
5.1.30.1070.02710.23
5.1.20.1070.02310.35
5.1.10.1200.01710.18
5.1.00.1100.02310.14
5.0.50.0600.0178.52
5.0.40.0600.0208.33
5.0.30.0530.0338.20
5.0.20.0530.0238.13
5.0.10.0630.0278.08
5.0.00.0530.0308.22
4.4.90.0000.0178.00
4.4.80.0030.0138.00
4.4.70.0030.0138.00
4.4.60.0100.0178.00
4.4.50.0000.0208.00
4.4.40.0000.0278.00
4.4.30.0000.0238.00
4.4.20.0200.0138.00
4.4.10.0470.0178.00
4.4.00.0500.0238.00
4.3.110.0470.0138.00
4.3.100.0470.0138.00
4.3.90.0470.0178.00
4.3.80.0500.0208.00
4.3.70.0430.0178.00
4.3.60.0470.0138.00
4.3.50.0470.0138.00
4.3.40.0470.0238.00
4.3.30.0270.0238.00
4.3.20.0200.0178.00
4.3.10.0230.0178.00
4.3.00.0230.0138.00

preferences:
43.67 ms | 400 KiB | 5 Q