3v4l.org

run code in 300+ PHP versions simultaneously
<?php $size = 5; $max = $size - 1; echo "<table>\n"; for ($row = 0; $row < $size; ++$row) { echo "\t<tr>"; for ($col = 0; $col < $size; ++$col) { echo "<td>" . (($row >= $max / 2 ? $max - $row : $row) + ($col >= $max / 2 ? $max - $col : $col)) . "</td>"; } echo "</tr>\n"; } 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.4.120.0110.00723.94
8.4.110.0120.00920.55
8.4.100.0140.00518.76
8.4.90.0060.00320.24
8.4.80.0030.00517.67
8.4.70.0100.01119.39
8.4.60.0130.00719.61
8.4.50.0160.00620.37
8.4.40.0060.00919.56
8.4.30.0080.01219.30
8.4.20.0030.00520.77
8.4.10.0090.00019.12
8.3.250.0150.00319.08
8.3.240.0130.00617.41
8.3.230.0130.00516.70
8.3.220.0110.00619.01
8.3.210.0130.00516.67
8.3.200.0100.00916.83
8.3.190.0100.00617.33
8.3.180.0100.01116.54
8.3.170.0100.00920.71
8.3.160.0040.01417.40
8.3.150.0140.00416.41
8.3.140.0040.01118.85
8.3.130.0060.00316.79
8.3.120.0050.00518.89
8.3.110.0060.00320.94
8.3.100.0000.00920.31
8.3.90.0090.00618.45
8.3.80.0030.00617.97
8.3.70.0150.00616.37
8.3.60.0120.00616.63
8.3.50.0050.00817.24
8.3.40.0140.00718.59
8.3.30.0070.01118.71
8.3.20.0040.00420.41
8.3.10.0040.00421.77
8.3.00.0080.00022.32
8.2.290.0080.01220.38
8.2.280.0090.00716.40
8.2.270.0140.00417.13
8.2.260.0070.01017.03
8.2.250.0030.00518.43
8.2.240.0050.00516.32
8.2.230.0160.00322.58
8.2.220.0030.00637.54
8.2.210.0100.01026.77
8.2.200.0030.00618.29
8.2.190.0100.00716.58
8.2.180.0120.00616.50
8.2.170.0070.00722.96
8.2.160.0070.00722.13
8.2.150.0020.00524.18
8.2.140.0060.00324.66
8.2.130.0070.00418.09
8.2.120.0040.00426.35
8.2.110.0030.00720.35
8.2.100.0070.00417.59
8.2.90.0040.00420.59
8.2.80.0040.00417.97
8.2.70.0050.00318.03
8.2.60.0040.00418.16
8.2.50.0050.00318.10
8.2.40.0040.00419.31
8.2.30.0030.00619.35
8.2.20.0040.00418.06
8.2.10.0000.00719.19
8.2.00.0040.00418.01
8.1.330.0080.01121.69
8.1.320.0090.01117.65
8.1.310.0110.00416.80
8.1.300.0050.00318.07
8.1.290.0090.00018.88
8.1.280.0080.00825.92
8.1.270.0000.00820.33
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0070.00323.78
8.1.230.0080.00320.94
8.1.220.0060.00317.77
8.1.210.0000.00819.16
8.1.200.0080.00017.35
8.1.190.0050.00317.13
8.1.180.0050.00318.10
8.1.170.0040.00418.55
8.1.160.0000.00818.93
8.1.150.0040.00418.92
8.1.140.0000.00822.24
8.1.130.0030.00320.27
8.1.120.0000.00717.36
8.1.110.0060.00317.29
8.1.100.0030.00417.48
8.1.90.0040.00417.46
8.1.80.0030.00617.50
8.1.70.0070.00417.49
8.1.60.0070.00717.46
8.1.50.0000.00817.51
8.1.40.0040.00417.53
8.1.30.0040.00417.54
8.1.20.0060.00317.56
8.1.10.0050.00217.53
8.1.00.0000.00817.46
8.0.300.0030.00619.89
8.0.290.0080.00016.63
8.0.280.0040.00418.41
8.0.270.0000.00717.33
8.0.260.0080.00018.36
8.0.250.0040.00416.97
8.0.240.0050.00316.85
8.0.230.0040.00416.83
8.0.220.0030.00316.91
8.0.210.0030.00416.79
8.0.200.0060.00016.85
8.0.190.0000.00716.93
8.0.180.0080.00016.92
8.0.170.0060.00316.89
8.0.160.0000.00916.98
8.0.150.0000.00716.91
8.0.140.0040.00416.74
8.0.130.0000.00513.29
8.0.120.0040.00416.76
8.0.110.0070.00016.81
8.0.100.0040.00416.84
8.0.90.0040.00416.89
8.0.80.0140.00716.80
8.0.70.0070.00017.01
8.0.60.0000.00716.88
8.0.50.0070.00016.77
8.0.30.0100.00617.04
8.0.20.0060.01317.13
8.0.10.0000.00717.07
8.0.00.0120.00816.68
7.4.330.0020.00216.77
7.4.320.0000.00716.46
7.4.300.0000.00616.55
7.4.290.0040.00416.39
7.4.280.0000.00916.54
7.4.270.0090.00016.53
7.4.260.0040.00416.33
7.4.250.0000.00716.50
7.4.240.0070.00016.38
7.4.230.0000.00716.47
7.4.220.0000.00816.45
7.4.210.0090.00616.54
7.4.200.0000.00816.43
7.4.160.0080.00916.51
7.4.140.0110.00917.86
7.4.130.0060.01116.58
7.4.120.0110.01116.66
7.4.110.0150.00416.32
7.4.100.0140.00716.33
7.4.90.0040.01316.43
7.4.80.0090.01319.39
7.4.70.0190.00316.46
7.4.60.0040.01216.33
7.4.50.0060.00616.26
7.4.40.0040.01516.35
7.4.00.0030.01314.83
7.3.330.0000.00513.25
7.3.320.0030.00313.25
7.3.310.0070.00016.52
7.3.300.0070.00016.36
7.3.290.0060.01316.39
7.3.280.0110.00616.37
7.3.260.0080.01316.44
7.3.240.0080.01016.51
7.3.230.0120.00616.54
7.3.210.0150.00916.30
7.3.200.0180.00016.66
7.3.190.0120.00816.34
7.3.180.0060.01516.29
7.3.170.0040.01416.46
7.3.160.0090.00916.50
7.3.30.0080.00514.92
7.3.20.0490.01014.91
7.3.10.0500.00314.82
7.3.00.0570.00014.73
7.2.330.0160.00216.44
7.2.320.0070.01316.79
7.2.310.0080.01216.79
7.2.300.0100.00716.67
7.2.290.0060.01216.69
7.2.160.0150.00615.17
7.2.150.0640.00315.10
7.2.140.0450.00315.05
7.2.130.0680.00615.03
7.2.120.0350.00615.08
7.2.110.0520.00715.11
7.2.100.0700.01014.69
7.2.90.0540.00314.92
7.2.80.0460.01015.09
7.2.70.0460.00715.06
7.2.60.0530.01014.97
7.2.50.0550.00714.92
7.2.40.0650.00714.85
7.2.30.0660.00014.94
7.2.20.1530.00714.86
7.2.10.0810.00315.20
7.2.00.0520.01015.09
7.1.270.0570.00613.96
7.1.260.0570.00613.98
7.1.250.0560.00013.97

preferences:
27.44 ms | 403 KiB | 5 Q