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.0120.00916.50
8.3.50.0060.01122.12
8.3.40.0090.00618.92
8.3.30.0110.00419.19
8.3.20.0040.00420.25
8.3.10.0040.00423.48
8.3.00.0080.00019.25
8.2.180.0130.00318.29
8.2.170.0040.01418.96
8.2.160.0100.00722.14
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0080.00826.16
8.2.120.0040.00421.04
8.2.110.0040.00422.31
8.2.100.0060.00617.91
8.2.90.0080.00019.29
8.2.80.0000.00818.05
8.2.70.0030.00617.63
8.2.60.0050.00217.93
8.2.50.0040.00418.07
8.2.40.0000.00718.16
8.2.30.0070.00018.07
8.2.20.0000.00717.75
8.2.10.0040.00418.12
8.2.00.0060.00617.82
8.1.280.0160.01025.92
8.1.270.0000.00822.03
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00323.92
8.1.230.0070.00419.09
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0000.00817.13
8.1.190.0060.00317.41
8.1.180.0050.00318.10
8.1.170.0080.00018.50
8.1.160.0030.00322.01
8.1.150.0070.00018.64
8.1.140.0050.00317.44
8.1.130.0040.00417.87
8.1.120.0000.00717.38
8.1.110.0050.00217.42
8.1.100.0040.00417.36
8.1.90.0090.00217.44
8.1.80.0100.00217.35
8.1.70.0040.00517.44
8.1.60.0110.00317.56
8.1.50.0080.00517.48
8.1.40.0090.00417.41
8.1.30.0040.00717.62
8.1.20.0100.00217.51
8.1.10.0100.00417.58
8.1.00.0050.00817.46
8.0.300.0040.00419.15
8.0.290.0070.00017.18
8.0.280.0040.00418.45
8.0.270.0070.00016.82
8.0.260.0060.00017.32
8.0.250.0070.00016.90
8.0.240.0060.00016.86
8.0.230.0090.00216.88
8.0.220.0070.00416.81
8.0.210.0080.00216.84
8.0.200.0080.00216.88
8.0.190.0100.00216.90
8.0.180.0080.00316.86
8.0.170.0030.00916.83
8.0.160.0070.00416.85
8.0.150.0070.00416.81
8.0.140.0060.00616.77
8.0.130.0080.00415.03
8.0.120.0080.00416.82
8.0.110.0030.00716.81
8.0.100.0030.00816.90
8.0.90.0010.00816.79
8.0.80.0080.00616.86
8.0.70.0060.00416.83
8.0.60.0080.00316.90
8.0.50.0070.00516.76
8.0.30.0070.00916.96
8.0.20.0100.00717.11
8.0.10.0170.00416.95
8.0.00.0110.00916.97
7.4.330.0050.00015.00
7.4.320.0000.00616.56
7.4.300.0050.00316.54
7.4.290.0080.00416.56
7.4.280.0080.00316.60
7.4.270.0090.00416.51
7.4.260.0070.00516.58
7.4.250.0050.00716.50
7.4.240.0050.00516.50
7.4.230.0070.00516.54
7.4.220.0070.00816.54
7.4.210.0080.00516.65
7.4.200.0020.00916.60
7.4.190.0060.00616.65
7.4.180.0060.00516.49
7.4.160.0100.00616.51
7.4.150.0120.00416.70
7.4.140.0120.00716.83
7.4.130.0140.00616.37
7.4.120.0140.00716.48
7.4.110.0130.00416.45
7.4.100.0120.00816.52
7.4.90.0110.00916.38
7.4.80.0140.00616.83
7.4.70.0110.00916.44
7.4.60.0120.00816.34
7.4.50.0130.00716.38
7.4.40.0120.00817.32
7.4.30.0120.00816.33
7.4.20.0140.00716.43
7.4.10.0140.00716.41
7.4.00.0100.00716.09
7.3.330.0110.00615.54
7.3.320.0060.00414.65
7.3.310.0050.00516.25
7.3.300.0080.00316.26
7.3.290.0090.00316.25
7.3.280.0080.00916.23
7.3.270.0100.00716.55
7.3.260.0120.00716.33
7.3.250.0160.00616.32
7.3.240.0110.00716.33
7.3.230.0130.00816.42
7.3.220.0160.00616.30
7.3.210.0150.00616.29
7.3.200.0110.01116.77
7.3.190.0160.00616.34
7.3.180.0140.00916.33
7.3.170.0130.00716.23
7.3.160.0170.00616.38
7.3.150.0130.01216.38
7.3.140.0150.01016.33
7.3.130.0130.00916.32
7.3.120.0100.00916.00
7.3.110.0120.00816.00
7.3.100.0100.00815.96
7.3.90.0100.00716.08
7.3.80.0120.00616.03
7.3.70.0090.01016.00
7.3.60.0100.01115.99
7.3.50.0110.00915.92
7.3.40.0130.00815.88
7.3.30.0140.00715.90
7.3.20.0160.00916.65
7.3.10.0100.00916.61
7.3.00.0120.00716.60
7.2.340.0160.00716.49
7.2.330.0170.01016.50
7.2.320.0190.00816.48
7.2.310.0180.00616.39
7.2.300.0180.00716.50
7.2.290.0160.01016.41
7.2.280.0290.01216.54
7.2.270.0200.01016.46
7.2.260.0170.01016.47
7.2.250.0200.00916.38
7.2.240.0160.00816.11
7.2.230.0150.01016.13
7.2.220.0140.00916.23
7.2.210.0110.01016.18
7.2.200.0150.01016.16
7.2.190.0170.00716.23
7.2.180.0140.00916.13
7.2.170.0140.00816.08
7.2.160.0150.00916.21
7.2.150.0150.00916.86
7.2.140.0170.00716.79
7.2.130.0160.00716.88
7.2.120.0150.00716.86
7.2.110.0150.00716.91
7.2.100.0180.00716.84
7.2.90.0160.00716.88
7.2.80.0150.00816.92
7.2.70.0150.00916.92
7.2.60.0150.00916.88
7.2.50.0130.00916.89
7.2.40.0170.00616.87
7.2.30.0150.00816.90
7.2.20.0160.00716.96
7.2.10.0150.00816.88
7.2.00.0180.00916.94
7.1.330.0150.01015.87
7.1.320.0140.00815.79
7.1.310.0130.00815.78
7.1.300.0140.00915.72
7.1.290.0140.00715.83
7.1.280.0120.00815.75
7.1.270.0150.00715.80
7.1.260.0140.00715.67
7.1.250.0150.00615.75
7.1.240.0140.00915.66
7.1.230.0220.01215.69
7.1.220.0160.00715.76
7.1.210.0170.00515.72
7.1.200.0150.00715.79
7.1.190.0300.00815.74
7.1.180.0150.00815.67
7.1.170.0140.00915.71
7.1.160.0140.00915.72
7.1.150.0190.00815.76
7.1.140.0170.00815.78
7.1.130.0160.00615.67
7.1.120.0130.01015.76
7.1.110.0210.00915.80
7.1.100.0190.00815.79
7.1.90.0140.00915.78
7.1.80.0140.01015.74
7.1.70.0180.00915.79
7.1.60.0170.01017.49
7.1.50.0190.00917.45
7.1.40.0210.00817.42
7.1.30.0200.00817.43
7.1.20.0170.00617.38
7.1.10.0150.00915.73
7.1.00.0150.00815.79
7.0.330.0170.00915.42
7.0.320.0140.00915.42
7.0.310.0160.00715.34
7.0.300.0160.00715.38
7.0.290.0140.00915.37
7.0.280.0150.00815.35
7.0.270.0180.00615.42
7.0.260.0170.00615.34
7.0.250.0310.00815.57
7.0.240.0210.00815.53
7.0.230.0160.01015.63
7.0.220.0210.00815.53
7.0.210.0150.00915.40
7.0.200.0140.00615.49
7.0.190.0210.00615.54
7.0.180.0210.00815.37
7.0.170.0160.00815.43
7.0.160.0160.00715.38
7.0.150.0180.00615.36
7.0.140.0170.00615.40
7.0.130.0190.00615.50
7.0.120.0180.00915.47
7.0.110.0140.00815.38
7.0.100.0140.00815.43
7.0.90.0180.00715.43
7.0.80.0140.00815.48
7.0.70.0190.00615.47
7.0.60.0150.00915.40
7.0.50.0160.00815.42
7.0.40.0140.00815.39
7.0.30.0170.00815.43
7.0.20.0160.00715.48
7.0.10.0170.00815.40
7.0.00.0140.00715.46
5.6.400.0150.00915.59
5.6.390.0150.00815.55
5.6.380.0160.01015.58
5.6.370.0170.00715.58
5.6.360.0170.00715.53
5.6.350.0150.00915.54
5.6.340.0140.00915.62
5.6.330.0140.01115.60
5.6.320.0160.00915.46
5.6.310.0160.00715.60
5.6.300.0150.01916.41
5.6.290.0140.01716.52
5.6.280.0160.02016.52
5.6.270.0140.01716.54
5.6.260.0150.01716.51
5.6.250.0130.01816.53
5.6.240.0150.01516.57
5.6.230.0140.01716.62
5.6.220.0140.01816.56
5.6.210.0150.01516.58
5.6.200.0150.01616.53
5.6.190.0150.01716.60
5.6.180.0170.01716.60
5.6.170.0160.01716.57
5.6.160.0160.01416.55
5.6.150.0130.01716.62
5.6.140.0150.01516.51
5.6.130.0160.01416.64
5.6.120.0140.01616.59
5.6.110.0150.01716.54
5.6.100.0140.01616.55
5.6.90.0150.01416.55
5.6.80.0140.01716.41
5.6.70.0130.01616.47
5.6.60.0140.01516.39
5.6.50.0130.01716.32
5.6.40.0120.01816.35
5.6.30.0150.01616.41
5.6.20.0130.01616.33
5.6.10.0130.01616.35
5.6.00.0120.01616.35
5.5.380.0140.01715.85
5.5.370.0170.01615.89
5.5.360.0160.01815.84
5.5.350.0110.01715.86
5.5.340.0140.01515.93
5.5.330.0140.01715.87
5.5.320.0170.01415.94
5.5.310.0160.01615.95
5.5.300.0160.01415.92
5.5.290.0120.01715.88
5.5.280.0150.01415.94
5.5.270.0150.01715.88
5.5.260.0150.01615.96
5.5.250.0150.01615.90
5.5.240.0130.01615.77
5.5.230.0150.01415.78
5.5.220.0130.01715.78
5.5.210.0160.01415.81
5.5.200.0130.01715.72
5.5.190.0140.01615.76
5.5.180.0130.01815.76
5.5.170.0140.00715.41
5.5.160.0150.01515.80
5.5.150.0140.01715.77
5.5.140.0120.01715.75
5.5.130.0140.01515.67
5.5.120.0120.02015.73
5.5.110.0140.01715.70
5.5.100.0140.01515.83
5.5.90.0140.01415.75
5.5.80.0120.01815.83
5.5.70.0130.01715.79
5.5.60.0130.01615.75
5.5.50.0130.01615.77
5.5.40.0140.01615.69
5.5.30.0140.01615.77
5.5.20.0140.01715.76
5.5.10.0130.01615.71
5.5.00.0120.01515.74
5.4.450.0110.01413.72
5.4.440.0130.01313.81
5.4.430.0100.01513.73
5.4.420.0110.01513.80
5.4.410.0110.01413.74
5.4.400.0120.01113.74
5.4.390.0100.01413.68
5.4.380.0130.01313.63
5.4.370.0120.01313.65
5.4.360.0130.01513.68
5.4.350.0110.01413.66
5.4.340.0110.01713.67
5.4.330.0140.00512.48
5.4.320.0130.01213.63
5.4.310.0110.01313.67
5.4.300.0110.01413.75
5.4.290.0140.01413.72
5.4.280.0130.01213.69
5.4.270.0110.01513.68
5.4.260.0130.01413.67
5.4.250.0130.01513.69
5.4.240.0110.01513.62
5.4.230.0110.01413.67
5.4.220.0140.01413.60
5.4.210.0120.01413.64
5.4.200.0120.01413.62
5.4.190.0130.01513.62
5.4.180.0120.01513.70
5.4.170.0110.01513.65
5.4.160.0090.01613.67
5.4.150.0130.01413.67
5.4.140.0110.01413.29
5.4.130.0110.01413.25
5.4.120.0100.01513.25
5.4.110.0140.01313.27
5.4.100.0100.01413.27
5.4.90.0110.01313.26
5.4.80.0110.01413.29
5.4.70.0110.01413.28
5.4.60.0110.01413.30
5.4.50.0120.01313.26
5.4.40.0130.01313.31
5.4.30.0130.01113.24
5.4.20.0130.01013.32
5.4.10.0090.01613.28
5.4.00.0100.01313.14
5.3.290.0080.01613.26
5.3.280.0100.01413.18
5.3.270.0080.01713.28
5.3.260.0120.01513.24
5.3.250.0130.01413.28
5.3.240.0110.01413.17
5.3.230.0120.01313.21
5.3.220.0110.01413.19
5.3.210.0110.01613.10
5.3.200.0090.01513.10
5.3.190.0090.01613.13
5.3.180.0110.01413.23
5.3.170.0090.01613.18
5.3.160.0100.01413.20
5.3.150.0110.01313.21
5.3.140.0150.01213.14
5.3.130.0110.01313.18
5.3.120.0130.01313.22
5.3.110.0110.01613.25
5.3.100.0110.01313.14
5.3.90.0100.01513.20
5.3.80.0090.01513.04
5.3.70.0110.01413.10
5.3.60.0120.01313.14
5.3.50.0110.01513.10
5.3.40.0100.01413.10
5.3.30.0090.01713.20
5.3.20.0090.01413.02
5.3.10.0110.01312.94
5.3.00.0100.01212.91

preferences:
49.91 ms | 401 KiB | 5 Q