3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ["http://google.com", "Google"], ["http://yahoo.com", "Yahoo"] ]; foreach ($array as [$key1, $key2]) { echo "<a href=\"$key1\">$key2</a>\n"; }

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.5.00.0140.00719.77
8.4.150.0020.00014.05
8.4.140.0110.01017.32
8.4.130.0150.00517.83
8.4.120.0100.01020.61
8.4.110.0110.00622.48
8.4.100.0130.00817.75
8.4.90.0130.00918.54
8.4.80.0110.00917.84
8.4.70.0040.00417.77
8.4.60.0120.00818.82
8.4.50.0090.00518.89
8.4.40.0130.00717.58
8.4.30.0100.01020.40
8.4.20.0150.00417.84
8.4.10.0060.00321.16
8.3.280.0100.00920.03
8.3.270.0090.01016.64
8.3.260.0120.00416.66
8.3.250.0110.00718.78
8.3.240.0110.00816.38
8.3.230.0110.00816.31
8.3.220.0140.00517.26
8.3.210.0120.00718.48
8.3.200.0050.00416.63
8.3.190.0030.00417.15
8.3.180.0110.00716.73
8.3.170.0070.00719.05
8.3.160.0130.00617.07
8.3.150.0130.01020.71
8.3.140.0050.00516.70
8.3.130.0080.00018.39
8.3.120.0050.00518.93
8.3.110.0080.00020.94
8.3.100.0030.00624.06
8.3.90.0050.00326.77
8.3.80.0060.00319.36
8.3.70.0150.00016.58
8.3.60.0100.00718.18
8.3.50.0100.00923.74
8.3.40.0080.00821.71
8.3.30.0110.00418.80
8.3.20.0030.00624.18
8.3.10.0070.00024.66
8.3.00.0030.00626.16
8.2.290.0040.00620.50
8.2.280.0120.00718.30
8.2.270.0040.01417.19
8.2.260.0060.01218.99
8.2.250.0040.00416.42
8.2.240.0000.00819.16
8.2.230.0030.00622.58
8.2.220.0080.00037.54
8.2.210.0100.01026.77
8.2.200.0000.01118.88
8.2.190.0070.00716.81
8.2.180.0110.01125.92
8.2.170.0100.01019.13
8.2.160.0080.00622.96
8.2.150.0100.00025.66
8.2.140.0050.00324.66
8.2.130.0030.00526.16
8.2.120.0040.00426.35
8.2.110.0090.00520.97
8.2.100.0130.00417.72
8.2.90.0000.00818.32
8.2.80.0080.00018.77
8.2.70.0070.00317.75
8.2.60.0090.00317.59
8.2.50.0030.00518.07
8.2.40.0040.00418.16
8.2.30.0000.00718.12
8.2.20.0040.00418.04
8.2.10.0000.00719.32
8.2.00.0050.00219.25
8.1.330.0110.00822.03
8.1.320.0130.01015.87
8.1.310.0090.00618.52
8.1.300.0060.01320.17
8.1.290.0050.00530.84
8.1.280.0030.01025.92
8.1.270.0030.00622.20
8.1.260.0030.00728.09
8.1.250.0050.00328.09
8.1.240.0060.00323.88
8.1.230.0080.00419.04
8.1.220.0020.00517.78
8.1.210.0030.00618.77
8.1.200.0040.00417.23
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0000.00818.59
8.1.160.0000.00718.89
8.1.150.0060.00318.88
8.1.140.0000.00718.93
8.1.130.0030.00317.44
8.1.120.0030.00517.50
8.1.110.0040.00417.41
8.1.100.0000.00717.42
8.1.90.0040.00417.46
8.1.80.0040.00417.36
8.1.70.0000.00717.34
8.1.60.0080.00317.51
8.1.50.0030.00617.52
8.1.40.0000.00817.55
8.1.30.0000.00717.54
8.1.20.0110.00217.64
8.1.10.0060.00317.60
8.1.00.0030.00617.51
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.43
8.0.270.0040.00417.89
8.0.260.0070.00016.75
8.0.250.0000.00616.89
8.0.240.0070.00016.95
8.0.230.0000.00616.92
8.0.220.0020.00516.89
8.0.210.0030.00316.93
8.0.200.0030.00516.86
8.0.190.0030.00316.99
8.0.180.0030.00516.82
8.0.170.0040.00416.98
8.0.160.0070.00016.79
8.0.150.0030.00516.90
8.0.140.0070.00016.73
8.0.130.0030.00613.36
8.0.120.0030.00516.75
8.0.110.0040.00416.75
8.0.100.0040.00416.76
8.0.90.0040.00416.69
8.0.80.0040.01016.89
8.0.70.0000.00716.95
8.0.60.0000.00716.71
8.0.50.0040.00416.84
8.0.30.0070.01116.80
8.0.20.0100.01017.07
8.0.10.0000.00816.91
8.0.00.0090.00916.95
7.4.330.0050.00015.55
7.4.320.0000.00616.45
7.4.300.0030.00316.51
7.4.290.0000.00816.35
7.4.280.0050.00216.61
7.4.270.0000.00716.60
7.4.260.0000.00613.29
7.4.250.0070.00016.59
7.4.240.0070.00016.53
7.4.230.0000.00716.51
7.4.220.0030.00416.55
7.4.210.0080.00616.56
7.4.200.0000.00816.68
7.4.130.0160.00716.64
7.4.120.0070.01116.47
7.4.110.0060.01316.50
7.4.100.0070.01116.48
7.4.90.0090.01616.32
7.4.80.0110.00816.59
7.4.70.0060.01216.42
7.4.60.0120.01116.33
7.4.50.0090.00916.41
7.4.40.0090.00916.63
7.4.30.0180.00316.30
7.4.20.0100.01016.34
7.4.10.0140.00316.68
7.4.00.0120.00616.51
7.3.330.0030.00316.28
7.3.320.0030.00313.23
7.3.310.0040.00416.34
7.3.300.0040.00416.34
7.3.290.0110.00616.34
7.3.260.0140.00316.59
7.3.250.0000.01716.54
7.3.240.0060.01616.43
7.3.230.0060.01316.50
7.3.220.0110.00816.15
7.3.210.0130.00316.46
7.3.200.0100.00716.22
7.3.190.0030.01416.42
7.3.180.0100.01016.48
7.3.170.0150.00316.36
7.3.160.0180.00416.40
7.3.150.0120.00916.48
7.3.140.0160.00716.37
7.3.130.0080.01216.46
7.3.120.0090.00916.19
7.3.110.0140.00316.22
7.3.100.0150.00716.45
7.3.90.0040.01916.66
7.3.80.0120.01216.30
7.3.70.0150.00816.23
7.3.60.0130.01016.35
7.3.50.0100.01016.58
7.3.40.0070.01716.33
7.3.30.0140.00716.37
7.3.20.0100.00918.23
7.3.10.0080.01218.21
7.3.00.0140.00518.25
5.5.00.0070.00415.37

preferences:
202.29 ms | 403 KiB | 5 Q