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($mycontent); // 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.60.0070.01416.38
8.3.50.0150.00522.04
8.3.40.0110.00418.65
8.3.30.0050.00918.92
8.3.20.0080.00020.13
8.3.10.0080.00023.56
8.3.00.0000.00820.66
8.2.180.0150.00916.38
8.2.170.0110.00322.96
8.2.160.0070.00722.21
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00722.11
8.2.110.0040.00422.08
8.2.100.0040.00717.78
8.2.90.0030.00519.36
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0040.00417.93
8.2.50.0030.00518.07
8.2.40.0080.00019.42
8.2.30.0040.00418.04
8.2.20.0070.00017.73
8.2.10.0040.00417.73
8.2.00.0000.00717.74
8.1.280.0100.01025.92
8.1.270.0090.00023.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.87
8.1.230.0070.00419.10
8.1.220.0040.00417.79
8.1.210.0050.00318.77
8.1.200.0060.00317.36
8.1.190.0030.00617.28
8.1.180.0000.00818.10
8.1.170.0080.00018.66
8.1.160.0040.00422.03
8.1.150.0000.00818.52
8.1.140.0000.00717.44
8.1.130.0070.00017.88
8.1.120.0050.00217.46
8.1.110.0000.00717.44
8.1.100.0030.00517.46
8.1.90.0000.00917.37
8.1.80.0050.00317.48
8.1.70.0030.00317.32
8.1.60.0030.00617.60
8.1.50.0040.00417.43
8.1.40.0060.00317.52
8.1.30.0040.00417.53
8.1.20.0000.00917.64
8.1.10.0060.00317.48
8.1.00.0040.00417.43
8.0.300.0070.00018.77
8.0.290.0000.00817.18
8.0.280.0040.00418.45
8.0.270.0000.00717.22
8.0.260.0030.00618.33
8.0.250.0030.00316.97
8.0.240.0060.00316.85
8.0.230.0040.00416.82
8.0.220.0000.00616.92
8.0.210.0000.00716.88
8.0.200.0030.00316.94
8.0.190.0050.00216.88
8.0.180.0040.00416.92
8.0.170.0000.00816.85
8.0.160.0000.00716.84
8.0.150.0070.00016.79
8.0.140.0000.00816.89
8.0.130.0050.00013.37
8.0.120.0040.00416.85
8.0.110.0070.00016.74
8.0.100.0020.00516.78
8.0.90.0040.00416.79
8.0.80.0120.00416.89
8.0.70.0040.00416.94
8.0.60.0000.00716.71
8.0.50.0000.00716.96
8.0.30.0140.00916.93
8.0.20.0070.01117.43
8.0.10.0050.00317.09
8.0.00.0120.00716.62
7.4.330.0060.00015.07
7.4.320.0040.00416.56
7.4.300.0030.00316.63
7.4.290.0000.00716.56
7.4.280.0000.00716.61
7.4.270.0000.00616.58
7.4.260.0040.00416.48
7.4.250.0040.00416.47
7.4.240.0030.00416.54
7.4.230.0000.00716.34
7.4.220.0040.01216.51
7.4.210.0100.00516.61
7.4.200.0050.00216.55
7.4.190.0000.00716.68
7.4.160.0150.00016.48
7.4.150.0120.00617.40
7.4.140.0100.01017.86
7.4.130.0100.00916.52
7.4.120.0100.00716.54
7.4.110.0080.00916.57
7.4.100.0140.00516.69
7.4.90.0080.01416.46
7.4.80.0090.00916.49
7.4.70.0090.00916.34
7.4.60.0070.01016.36
7.4.50.0040.00416.44
7.4.40.0040.01122.77
7.4.30.0070.01016.52
7.4.00.0050.01114.98
7.3.330.0020.00213.11
7.3.320.0060.00013.16
7.3.310.0030.00316.21
7.3.300.0030.00316.29
7.3.290.0040.01216.22
7.3.280.0060.01116.33
7.3.270.0160.00017.40
7.3.260.0100.00716.65
7.3.250.0080.01016.33
7.3.240.0110.00616.42
7.3.230.0030.01416.42
7.3.210.0130.00616.31
7.3.200.0110.01119.39
7.3.190.0160.00516.56
7.3.180.0000.01616.64
7.3.170.0090.01216.32
7.3.160.0100.00616.52
7.3.120.0030.01214.68
7.3.110.0070.01014.66
7.3.100.0000.01114.63
7.3.90.0000.01414.91
7.3.80.0090.00315.00
7.3.70.0150.00014.79
7.3.60.0030.00914.75
7.3.50.0120.00614.87
7.3.40.0100.00714.89
7.3.30.0000.01614.87
7.3.20.0070.00716.57
7.3.10.0040.01516.50
7.3.00.0030.00916.72
7.2.330.0120.00616.61
7.2.320.0070.01116.65
7.2.310.0100.01316.36
7.2.300.0070.01016.67
7.2.290.0100.00616.52
7.2.250.0040.01515.08
7.2.240.0150.00415.15
7.2.230.0090.00615.09
7.2.220.0060.00915.02
7.2.210.0080.00315.22
7.2.200.0060.00615.07
7.2.190.0090.00614.64
7.2.180.0070.01015.17
7.2.170.0000.01015.22
7.2.60.0030.01216.91
7.2.00.0170.00318.73
7.1.330.0120.00315.66
7.1.320.0000.01615.83
7.1.310.0050.00515.90
7.1.300.0070.00715.70
7.1.290.0090.00615.82
7.1.280.0070.00315.91
7.1.270.0030.01415.88
7.1.260.0090.00615.82
7.1.200.0000.00915.59
7.1.100.0110.00418.22
7.1.70.0040.00417.29
7.1.60.0130.01319.27
7.1.50.0130.00616.93
7.1.00.0030.07722.54
7.0.200.0050.00316.86
7.0.140.0100.06722.00
7.0.80.0130.03319.86
7.0.70.0100.08019.86
7.0.60.0030.05019.79
7.0.50.0530.05720.40
7.0.40.0070.05320.11
7.0.30.0000.09720.13
7.0.20.0170.04320.12
7.0.10.0030.06319.99
7.0.00.0070.04720.07
5.6.280.0000.07721.10
5.6.230.0030.05320.66
5.6.220.0070.08020.48
5.6.210.0100.07720.56
5.6.200.0100.08321.09
5.6.190.0030.05021.13
5.6.180.0000.04721.02
5.6.170.0200.06721.13
5.6.160.0070.04721.03
5.6.150.0100.04321.02
5.6.140.0030.06021.11
5.6.130.0030.05321.01
5.6.120.0070.04021.04
5.6.110.0000.04721.07
5.6.100.0100.04020.91
5.6.90.0000.05020.94
5.6.80.0070.03720.45
5.6.70.0000.04020.51
5.6.60.0100.03020.41
5.6.50.0100.05020.43
5.6.40.0070.03720.35
5.6.30.0070.03720.38
5.6.20.0030.03720.29
5.6.10.0100.06020.35
5.6.00.0070.03020.41
5.5.370.0070.08020.39
5.5.360.0070.07720.44
5.5.350.0100.04320.47
5.5.340.0000.08720.83
5.5.330.0100.04720.92
5.5.320.0130.07020.83
5.5.310.0100.07320.79
5.5.300.0130.07020.86
5.5.290.0130.07320.75
5.5.280.0070.04020.77
5.5.270.0000.04720.87
5.5.260.0070.04020.86
5.5.250.0030.04020.70
5.5.240.0000.03720.26
5.5.230.0000.04320.26
5.5.220.0000.09020.27
5.5.210.0030.07320.21
5.5.200.0030.05020.28
5.5.190.0070.03720.21
5.5.180.0000.04720.14
5.5.160.0070.03720.22
5.5.150.0030.03720.07
5.5.140.0070.07020.22
5.5.130.0030.03320.11
5.5.120.0100.05320.27
5.5.110.0030.04320.13
5.5.100.0030.07020.13
5.5.90.0030.03319.94
5.5.80.0000.05020.04
5.5.70.0100.05020.05
5.5.60.0030.03719.99
5.5.50.0070.04720.05
5.5.40.0030.03720.09
5.5.30.0070.03720.13
5.5.20.0000.04319.93
5.5.10.0030.03320.03
5.5.00.0070.03320.03
5.4.450.0000.05019.11
5.4.440.0100.03319.55
5.4.430.0000.04719.13
5.4.420.0070.05019.45
5.4.410.0030.03719.24
5.4.400.0070.03018.95
5.4.390.0100.05318.98
5.4.380.0030.03719.05
5.4.370.0100.02719.16
5.4.360.0070.03019.05
5.4.350.0070.03019.07
5.4.340.0030.07019.23
5.4.320.0000.04319.02
5.4.310.0030.03719.09
5.4.300.0000.04019.06
5.4.290.0070.03319.04
5.4.280.0070.03018.99
5.4.270.0000.03718.97
5.4.260.0030.03319.05
5.4.250.0000.03719.12
5.4.240.0030.06019.07
5.4.230.0000.03318.93
5.4.220.0070.03319.12
5.4.210.0030.03719.06
5.4.200.0030.03719.01
5.4.190.0030.04019.00
5.4.180.0170.02018.95
5.4.170.0000.04019.05
5.4.160.0000.04019.21
5.4.150.0030.03318.93
5.4.140.0000.03316.27
5.4.130.0100.07016.36
5.4.120.0100.06716.34
5.4.110.0100.07016.30
5.4.100.0130.06716.31
5.4.90.0200.06316.27
5.4.80.0200.07016.42
5.4.70.0130.04716.32
5.4.60.0070.04016.28
5.4.50.0070.06316.28
5.4.40.0070.05016.33
5.4.30.0130.05316.31
5.4.20.0070.07016.27
5.4.10.0030.08316.30
5.4.00.0030.06315.77
5.3.290.0000.04314.61
5.3.280.0070.05314.55
5.3.270.0100.03314.44
5.3.260.0100.03314.54
5.3.250.0070.03314.60
5.3.240.0170.02014.43
5.3.230.0070.05314.48
5.3.220.0100.04714.50
5.3.210.0100.07014.52
5.3.200.0000.04714.50
5.3.190.0070.05314.43
5.3.180.0030.03714.42
5.3.170.0070.06714.40
5.3.160.0100.05314.52
5.3.150.0030.07714.43
5.3.140.0130.07014.41
5.3.130.0070.07714.40
5.3.120.0070.05014.41
5.3.110.0100.07314.41
5.3.100.0130.04713.89
5.3.90.0070.05714.00
5.3.80.0030.07713.95
5.3.70.0070.07013.99
5.3.60.0130.07313.95
5.3.50.0100.07013.71
5.3.40.0100.07013.93
5.3.30.0100.03713.76
5.3.20.0030.07313.55
5.3.10.0000.07713.52
5.3.00.0100.07313.58
5.2.170.0000.05011.56
5.2.160.0100.04311.56
5.2.150.0030.04011.56
5.2.140.0200.04011.56
5.2.130.0200.04011.56
5.2.120.0070.06011.56
5.2.110.0130.05311.56
5.2.100.0070.06011.56
5.2.90.0030.05311.56
5.2.80.0030.06711.56
5.2.70.0100.05711.56
5.2.60.0100.04711.56
5.2.50.0070.05711.56
5.2.40.0030.06011.56
5.2.30.0030.06311.56
5.2.20.0030.04011.56
5.2.10.0030.06311.56
5.2.00.0100.05711.56
5.1.60.0100.03711.56
5.1.50.0030.05311.56
5.1.40.0070.04311.56
5.1.30.0070.05311.56
5.1.20.0070.05311.56
5.1.10.0030.05011.56
5.1.00.0070.05311.56
5.0.50.0000.04311.56
5.0.40.0000.04311.56
5.0.30.0070.05711.56
5.0.20.0030.03011.56
5.0.10.0000.04311.56
5.0.00.0000.07011.56
4.4.90.0000.02311.56
4.4.80.0000.02711.56
4.4.70.0070.03011.56
4.4.60.0070.02311.56
4.4.50.0030.02311.56
4.4.40.0030.05311.56
4.4.30.0000.04011.56
4.4.20.0000.03311.56
4.4.10.0070.02311.56
4.4.00.0030.05311.56
4.3.110.0070.03311.56
4.3.100.0030.03311.56
4.3.90.0030.02011.56
4.3.80.0070.03311.56
4.3.70.0000.02711.56
4.3.60.0030.02011.56
4.3.50.0070.03011.56
4.3.40.0030.04011.56
4.3.30.0070.03011.56
4.3.20.0030.03311.56
4.3.10.0070.03011.56
4.3.00.0000.03311.56

preferences:
34.34 ms | 401 KiB | 5 Q