3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mycontent=array("<p>Miller</p><p>23 South Street</p><p>likes steak medium</p>", "<p>Smith</p><p>14 West Drive</p><p>doesn#t drink milk</p>", "<p>Festinger</p><p>3 East Avenue</p><p>warches evening news every day</p>"); $h = "<table>"; // we are going to build the table in $h $maxcount = count($output); // get the number of values within the array for ($i = 0;$i < $maxcount;$i++) { // counting $i up from 0 to $maxcount -1 ... $h.= "<tr><td>{$mycontent[$i]}</td></tr>"; // build row } $h.= "</table>"; // close the table echo $h; // echo it

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.40.0120.00318.73
8.3.30.0110.00418.81
8.3.20.0040.00418.70
8.3.10.0080.00020.64
8.3.00.0070.00317.50
8.2.170.0000.01422.96
8.2.160.0070.01022.13
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0000.00726.16
8.2.120.0000.00719.83
8.2.110.0030.00620.95
8.2.100.0000.01217.87
8.2.90.0050.00319.18
8.2.80.0040.00417.80
8.2.70.0030.00517.63
8.2.60.0000.00817.80
8.2.50.0000.00818.07
8.2.40.0050.00317.97
8.2.30.0000.00718.13
8.2.20.0000.00817.60
8.2.10.0040.00417.73
8.2.00.0040.00417.94
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0000.00922.52
8.1.230.0110.00020.88
8.1.220.0040.00417.74
8.1.210.0060.00318.96
8.1.200.0040.00417.35
8.1.190.0040.00417.41
8.1.180.0000.00918.10
8.1.170.0040.00418.74
8.1.160.0040.00418.89
8.1.150.0050.00218.64
8.1.140.0040.00717.45
8.1.130.0030.00317.73
8.1.120.0050.00317.38
8.1.110.0040.00317.46
8.1.100.0070.00017.48
8.1.90.0000.00717.48
8.1.80.0030.00517.51
8.1.70.0050.00217.43
8.1.60.0000.00717.61
8.1.50.0050.00317.35
8.1.40.0000.00717.54
8.1.30.0000.00717.53
8.1.20.0040.00417.70
8.1.10.0030.00517.44
8.1.00.0050.00217.37
8.0.300.0040.00419.91
8.0.290.0000.00716.75
8.0.280.0020.00518.32
8.0.270.0000.00717.12
8.0.260.0030.00318.31
8.0.250.0020.00516.94
8.0.240.0040.00416.95
8.0.230.0090.00016.83
8.0.220.0060.00016.86
8.0.210.0030.00516.91
8.0.200.0060.00016.92
8.0.190.0080.00016.88
8.0.180.0070.00016.95
8.0.170.0040.00416.96
8.0.160.0030.00316.99
8.0.150.0000.00816.83
8.0.140.0100.00316.88
8.0.130.0000.00613.45
8.0.120.0050.00216.95
8.0.110.0040.00417.02
8.0.100.0020.00516.86
8.0.90.0070.00016.80
8.0.80.0110.00516.99
8.0.70.0070.00017.07
8.0.60.0000.00716.95
8.0.50.0000.00716.80
8.0.30.0080.01117.21
8.0.20.0100.01017.38
8.0.10.0000.00716.93
8.0.00.0100.00716.74
7.4.330.0000.00512.98
7.4.320.0070.00016.62
7.4.300.0000.00716.61
7.4.290.0070.00016.46
7.4.280.0030.00416.58
7.4.270.0070.00016.60
7.4.260.0000.00613.28
7.4.250.0040.00416.46
7.4.240.0040.00416.61
7.4.230.0000.00716.72
7.4.220.0110.01516.58
7.4.210.0080.00716.57
7.4.200.0030.00316.30
7.4.190.0040.00316.64
7.4.160.0040.01216.65
7.4.150.0060.01216.61
7.4.140.0060.01216.49
7.4.130.0070.01116.59
7.4.120.0080.00916.60
7.4.110.0140.00316.46
7.4.100.0090.00916.64
7.4.90.0090.01716.61
7.4.80.0080.00816.56
7.4.70.0120.01216.51
7.4.60.0080.00816.49
7.4.50.0000.00416.25
7.4.40.0030.00916.22
7.4.30.0110.00416.71
7.4.00.0030.01415.07
7.3.330.0060.00013.25
7.3.320.0000.00513.03
7.3.310.0050.00216.37
7.3.300.0060.00016.30
7.3.290.0040.01116.23
7.3.280.0030.01316.35
7.3.270.0120.00616.49
7.3.260.0080.00816.53
7.3.250.0100.00916.40
7.3.240.0200.00016.25
7.3.230.0130.00316.26
7.3.210.0030.01316.48
7.3.200.0090.00919.39
7.3.190.0150.00516.30
7.3.180.0100.00616.33
7.3.170.0060.00916.39
7.3.160.0060.00916.45
7.3.120.0000.01414.70
7.3.10.0090.00616.57
7.3.00.0070.00316.35
7.2.330.0130.00416.44
7.2.320.0080.00816.62
7.2.310.0070.01116.41
7.2.300.0090.00616.63
7.2.290.0130.00316.72
7.2.130.0050.00516.87
7.2.120.0000.01016.74
7.2.110.0060.00316.91
7.2.100.0070.00716.95
7.2.90.0030.01016.85
7.2.80.0040.00716.91
7.2.70.0070.00717.04
7.2.60.0050.00716.97
7.2.50.0030.00916.66
7.2.40.0070.01016.94
7.2.30.0070.00716.97
7.2.20.0090.00616.89
7.2.10.0030.01016.61
7.2.00.0040.01118.17
7.1.250.0030.00916.01
7.1.200.0060.00615.89
7.1.100.0060.00318.21
7.1.70.0030.00617.05
7.1.60.0090.01519.40
7.1.50.0070.01716.57
7.1.00.0030.04722.33
7.0.200.0050.00514.69
7.0.140.0030.06722.22
7.0.120.0030.05722.04
7.0.60.0030.05020.05
7.0.50.0070.06017.88
7.0.40.0200.07720.20
7.0.30.0370.06020.21
7.0.20.0300.07720.02
7.0.10.0070.04020.21
7.0.00.0100.05020.13
5.6.280.0070.07021.06
5.6.210.0030.08320.47
5.6.200.0030.09018.18
5.6.190.0000.06720.79
5.6.180.0130.05020.35
5.6.170.0200.05720.47
5.6.160.0030.04320.46
5.6.150.0000.08718.20
5.6.140.0030.03718.18
5.6.130.0030.08718.17
5.6.120.0070.07320.98
5.6.110.0070.04020.95
5.6.100.0070.08721.19
5.6.90.0070.04720.88
5.6.80.0100.05020.37
5.5.350.0300.07320.46
5.5.340.0000.07018.02
5.5.330.0030.04320.13
5.5.320.0170.06020.50
5.5.310.0330.07720.28
5.5.300.0100.05017.95
5.5.290.0030.04018.00
5.5.280.0030.09020.76
5.5.270.0170.07720.88
5.5.260.0070.08320.79
5.5.250.0130.07320.68
5.5.240.0100.07020.26
5.4.450.0070.04019.50
5.4.440.0030.04719.41
5.4.430.0000.04319.50
5.4.420.0100.03719.43
5.4.410.0000.05018.98
5.4.400.0070.03319.12
5.4.390.0070.03318.79
5.4.380.0000.04019.15
5.4.370.0030.03719.21
5.4.360.0000.04019.18
5.4.350.0070.03319.14
5.4.340.0070.03319.17
5.4.320.0000.04319.02
5.4.310.0070.04319.09
5.4.300.0170.06318.80
5.4.290.0030.07719.15
5.4.280.0100.03719.11
5.4.270.0100.06319.11
5.4.260.0070.04719.07
5.4.250.0030.04019.07
5.4.240.0070.05318.76
5.4.230.0030.05018.78
5.4.220.0070.07719.13
5.4.210.0070.07319.11
5.4.200.0030.07018.78
5.4.190.0030.04319.17
5.4.180.0070.03318.78
5.4.170.0070.07719.07
5.4.160.0130.07319.13
5.4.150.0000.04719.12
5.4.140.0070.06716.37
5.4.130.0070.04316.18
5.4.120.0030.08016.32
5.4.110.0100.05716.32
5.4.100.0100.07316.27
5.4.90.0070.07316.34
5.4.80.0000.06316.26
5.4.70.0100.07316.26
5.4.60.0070.04016.24
5.4.50.0100.07016.38
5.4.40.0030.07016.12
5.4.30.0030.05716.37
5.4.20.0130.05016.34
5.4.10.0030.05716.38
5.4.00.0070.07015.84
5.3.290.0030.04014.59
5.3.280.0130.06714.52
5.3.270.0070.07014.53
5.3.260.0100.05014.70
5.3.250.0000.05014.54
5.3.240.0070.06014.58
5.3.230.0100.07714.52
5.3.220.0000.07314.50
5.3.210.0070.06714.58
5.3.200.0030.06014.52
5.3.190.0030.03714.50
5.3.180.0070.07314.44
5.3.170.0100.06314.39
5.3.160.0000.04314.50
5.3.150.0100.04714.50
5.3.140.0100.06714.50
5.3.130.0100.07314.45
5.3.120.0000.05314.50
5.3.110.0030.08014.47
5.3.100.0100.07314.01
5.3.90.0030.05013.95
5.3.80.0100.07313.81
5.3.70.0170.06713.84
5.3.60.0070.07314.02
5.3.50.0070.07713.91
5.3.40.0030.07713.88
5.3.30.0000.05013.72
5.3.20.0000.07713.63
5.3.10.0030.07013.74
5.3.00.0070.07013.46
5.2.170.0100.04311.08
5.2.160.0070.06311.11
5.2.150.0070.06011.07
5.2.140.0000.04711.22
5.2.130.0030.06011.09
5.2.120.0030.05711.00
5.2.110.0030.06310.98
5.2.100.0070.06011.07
5.2.90.0030.06311.02
5.2.80.0100.05010.95
5.2.70.0030.06711.03
5.2.60.0070.05010.97
5.2.50.0100.06310.93
5.2.40.0100.04011.15
5.2.30.0130.05010.79
5.2.20.0000.05310.92
5.2.10.0000.06710.85
5.2.00.0170.03710.87
5.1.60.0070.05310.05
5.1.50.0100.0279.96
5.1.40.0030.0339.95
5.1.30.0000.02710.38
5.1.20.0030.03010.34
5.1.10.0030.05710.06
5.1.00.0000.04310.07
5.0.50.0000.0408.39
5.0.40.0070.0378.35
5.0.30.0070.0408.20
5.0.20.0070.0438.33
5.0.10.0000.0208.15
5.0.00.0000.0338.29
4.4.90.0030.0337.83
4.4.80.0030.0337.83
4.4.70.0030.0377.83
4.4.60.0100.0207.83
4.4.50.0030.0207.83
4.4.40.0030.0277.83
4.4.30.0000.0177.83
4.4.20.0030.0177.83
4.4.10.0030.0207.83
4.4.00.0000.0477.83
4.3.110.0000.0337.83
4.3.100.0030.0177.83
4.3.90.0000.0207.83
4.3.80.0030.0207.83
4.3.70.0070.0107.83
4.3.60.0030.0277.83
4.3.50.0030.0207.83
4.3.40.0000.0237.83
4.3.30.0030.0137.83
4.3.20.0000.0307.83
4.3.10.0070.0207.83
4.3.00.0000.0177.83

preferences:
40.03 ms | 400 KiB | 5 Q