3v4l.org

run code in 300+ PHP versions simultaneously
<?php $marks = array( array ( "0" => 35, "1" => 30, "2" => 39 ), array ( "0" => 30, "1" => 32, "2" => 29 ), array ( "0" => 31, "1" => 22, "2" => 39 ) ); echo '<table style="width:100%"><tr><th>Firstname</th><th>Lastname</th><th>Age</th></tr>'; foreach ($marks as $row){ echo '<tr> <td>'.$row[0].'</td> <td>'.$row[1].'</td> <td>'.$row[2].'</td> </tr>'; } echo '</table>';

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.0060.00916.63
8.3.50.0060.01218.03
8.3.40.0040.01118.79
8.3.30.0070.00718.67
8.3.20.0060.00320.34
8.3.10.0030.00523.66
8.3.00.0040.00421.96
8.2.180.0070.01516.38
8.2.170.0140.00722.96
8.2.160.0040.01119.04
8.2.150.0120.00324.18
8.2.140.0070.00724.66
8.2.130.0000.00821.07
8.2.120.0140.00026.35
8.2.110.0030.00622.27
8.2.100.0080.00417.78
8.2.90.0050.00319.22
8.2.80.0000.00817.97
8.2.70.0030.00517.75
8.2.60.0020.00517.93
8.2.50.0030.00618.10
8.2.40.0050.00320.41
8.2.30.0030.00621.13
8.2.20.0070.00018.20
8.2.10.0040.00418.04
8.2.00.0000.00717.93
8.1.280.0090.00625.92
8.1.270.0070.00022.19
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0000.01120.95
8.1.230.0070.00417.82
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0040.00717.35
8.1.190.0040.00417.23
8.1.180.0050.00218.10
8.1.170.0040.00418.55
8.1.160.0000.00718.89
8.1.150.0070.00018.95
8.1.140.0040.00419.54
8.1.130.0000.00718.88
8.1.120.0040.00417.54
8.1.110.0000.00717.47
8.1.100.0050.00317.40
8.1.90.0040.00417.42
8.1.80.0040.00417.35
8.1.70.0040.00417.35
8.1.60.0060.00317.55
8.1.50.0050.00317.41
8.1.40.0000.00817.48
8.1.30.0040.00417.70
8.1.20.0000.00817.63
8.1.10.0030.00617.59
8.1.00.0040.00417.48
8.0.300.0000.00818.77
8.0.290.0030.00516.75
8.0.280.0000.00718.36
8.0.270.0030.00317.26
8.0.260.0030.00616.83
8.0.250.0000.00716.98
8.0.240.0030.00616.96
8.0.230.0030.00317.00
8.0.220.0030.00316.80
8.0.210.0000.00816.79
8.0.200.0000.00716.84
8.0.190.0040.00416.95
8.0.180.0000.00716.79
8.0.170.0030.00316.95
8.0.160.0040.00416.87
8.0.150.0080.00016.86
8.0.140.0080.00016.77
8.0.130.0000.00613.33
8.0.120.0000.00716.86
8.0.110.0040.00416.94
8.0.100.0000.00716.87
8.0.90.0000.00816.81
8.0.80.0060.00916.79
8.0.70.0000.00816.73
8.0.60.0000.00816.76
8.0.50.0000.00816.84
8.0.30.0080.00917.09
8.0.20.0070.01217.40
8.0.10.0000.00717.08
8.0.00.0140.00316.75
7.4.330.0060.00015.55
7.4.320.0000.00816.43
7.4.300.0060.00016.46
7.4.290.0060.00316.52
7.4.280.0030.00516.47
7.4.270.0000.00716.50
7.4.260.0040.00416.57
7.4.250.0040.00416.57
7.4.240.0030.00316.57
7.4.230.0030.00316.41
7.4.220.0120.00916.52
7.4.210.0080.00616.51
7.4.200.0030.00316.71
7.4.160.0080.00916.56
7.4.150.0180.00017.40
7.4.140.0130.01017.86
7.4.130.0060.01216.44
7.4.120.0090.00916.46
7.4.110.0070.01016.57
7.4.100.0120.00916.43
7.4.90.0130.00316.57
7.4.80.0140.01019.39
7.4.70.0060.00916.45
7.4.60.0150.00916.47
7.4.50.0030.01516.65
7.4.40.0090.00916.36
7.4.30.0120.00616.44
7.4.00.0080.00915.04
7.3.330.0030.00313.17
7.3.320.0030.00213.24
7.3.310.0070.00016.31
7.3.300.0070.00016.30
7.3.290.0000.00716.30
7.3.280.0090.00916.30
7.3.270.0150.00417.40
7.3.260.0050.01316.60
7.3.250.0110.00716.31
7.3.240.0080.01116.55
7.3.230.0060.01316.57
7.3.210.0070.01016.35
7.3.200.0060.01216.60
7.3.190.0070.01016.48
7.3.180.0060.01016.43
7.3.170.0060.01616.66
7.3.160.0160.00016.52
7.3.120.0070.01114.84
7.3.110.0030.01614.92
7.3.100.0030.01014.66
7.3.90.0030.01414.89
7.3.80.0060.00914.72
7.3.70.0000.01614.84
7.3.60.0030.00714.67
7.3.50.0150.00014.92
7.3.40.0060.00914.85
7.3.30.0030.00914.86
7.3.20.0070.00716.67
7.3.10.0070.01016.45
7.3.00.0030.01016.53
7.2.330.0110.00716.65
7.2.320.0070.01116.76
7.2.310.0080.01616.57
7.2.300.0070.01016.77
7.2.290.0110.00716.67
7.2.250.0030.01715.26
7.2.240.0070.01414.90
7.2.230.0000.01715.29
7.2.220.0090.00315.09
7.2.210.0040.01115.05
7.2.200.0030.01315.05
7.2.190.0040.00815.08
7.2.180.0060.00314.79
7.2.170.0100.00615.21
7.2.60.0030.01216.73
7.2.00.0060.00919.54
7.1.330.0070.00715.80
7.1.320.0100.00315.60
7.1.310.0070.00315.99
7.1.300.0090.00615.76
7.1.290.0070.00715.85
7.1.280.0000.01515.64
7.1.270.0000.01415.81
7.1.260.0060.00315.88
7.1.200.0040.00815.67
7.1.100.0030.01018.05
7.1.70.0070.01117.09
7.1.60.0270.01034.90
7.1.50.0230.00734.91
7.1.40.0150.01234.32
7.1.30.0150.01534.45
7.1.20.0220.00734.50
7.1.10.0060.00916.44
7.1.00.0070.00716.48
7.0.200.0030.00916.89
7.0.190.0030.00916.47
7.0.180.0070.00716.18
7.0.170.0070.00716.27
7.0.160.0070.01016.28
7.0.150.0100.00316.24
7.0.140.0080.00516.30
7.0.130.0060.00816.44
7.0.120.0000.01316.41
7.0.110.0100.00316.29
7.0.100.0030.01016.34
7.0.90.0090.00316.42
7.0.80.0060.00616.21
7.0.70.0030.01016.14
7.0.60.0000.01316.23
7.0.50.0070.00716.31
7.0.40.0030.01016.38
7.0.30.0070.00716.32
7.0.20.0060.00616.34
7.0.10.0130.00016.46
7.0.00.0070.00716.34

preferences:
37.19 ms | 401 KiB | 5 Q