3v4l.org

run code in 300+ PHP versions simultaneously
<?php $months = array( "Януари", "Февруари", "Март", "Април", "Май", "Юни", "Юли", "Август", "Септември", "Октомври", "Ноември", "Декември" ); $days_in_month = array( 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 ); $current_month_index = date("n") - 1; ?> <html> <body> <table> <tr> <td colspan="2"><a href="#"><?php echo $months[$current_month_index - 1] ?></a></td> <td colspan="3"><?php echo $months[$current_month_index] ?></td> <td colspan="2"><a href="#"><?php echo $months[$current_month_index + 1] ?></a></td> </tr> <tr> <td>Понеделник</td> <td>Вторник</td> <td>Сряда</td> <td>Четвъртък</td> <td>Петък</td> <td>Събота</td> <td>Неделя</td> </tr> <?php for ($i = 1; $i <= $days_in_month[$current_month_index]; $i++) { ?> <?php if ($i % 5 === 1) { ?> <?php if ($i != 1) { ?> </tr> <?php } ?> <tr> <td></td> <td></td> <?php } ?> <td><?php echo $i ?></td> <?php } ?> </tr> </table> </body> </html>

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.70.0100.01018.31
8.3.60.0090.00618.25
8.3.50.0130.00822.13
8.3.40.0110.00419.05
8.3.30.0100.00319.25
8.3.20.0040.00420.34
8.3.10.0040.00423.36
8.3.00.0080.00419.38
8.2.180.0200.00318.41
8.2.170.0110.00422.96
8.2.160.0130.00720.24
8.2.150.0040.00424.18
8.2.140.0070.00724.66
8.2.130.0040.00426.16
8.2.120.0040.00419.48
8.2.110.0090.00022.27
8.2.100.0060.00617.91
8.2.90.0030.00519.35
8.2.80.0090.00017.97
8.2.70.0050.00317.75
8.2.60.0060.00317.93
8.2.50.0040.00418.07
8.2.40.0090.00018.41
8.2.30.0040.00418.29
8.2.20.0000.00817.85
8.2.10.0000.00818.32
8.2.00.0030.00617.82
8.1.280.0070.00725.92
8.1.270.0050.00322.11
8.1.260.0030.00526.35
8.1.250.0050.00328.09
8.1.240.0030.00623.84
8.1.230.0060.00618.96
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0070.00317.47
8.1.190.0000.00817.35
8.1.180.0050.00318.10
8.1.170.0000.00918.46
8.1.160.0000.00722.09
8.1.150.0040.00419.03
8.1.140.0070.00417.52
8.1.130.0060.00317.80
8.1.120.0040.00417.64
8.1.110.0040.00417.57
8.1.100.0000.00717.66
8.1.90.0070.00017.64
8.1.80.0040.00417.57
8.1.70.0070.00017.50
8.1.60.0000.00817.66
8.1.50.0080.00017.64
8.1.40.0000.00817.49
8.1.30.0000.00817.73
8.1.20.0000.00817.75
8.1.10.0020.00517.57
8.1.00.0000.00817.71
8.0.300.0000.00718.77
8.0.290.0080.00017.00
8.0.280.0030.00318.48
8.0.270.0000.00717.35
8.0.260.0030.00317.36
8.0.250.0050.00317.19
8.0.240.0030.00317.05
8.0.230.0070.00017.06
8.0.220.0030.00316.98
8.0.210.0000.00717.09
8.0.200.0040.00417.09
8.0.190.0040.00417.18
8.0.180.0030.00517.09
8.0.170.0000.00816.96
8.0.160.0070.00017.06
8.0.150.0080.00317.12
8.0.140.0110.00016.92
8.0.130.0040.00413.35
8.0.120.0040.00416.93
8.0.110.0040.00417.06
8.0.100.0070.00017.17
8.0.90.0070.00016.95
8.0.80.0100.00616.99
8.0.70.0050.00316.86
8.0.60.0040.00416.95
8.0.50.0000.00816.83
8.0.30.0120.00917.33
8.0.20.0110.00917.40
8.0.10.0040.00417.24
8.0.00.0080.01017.08
7.4.330.0050.00015.00
7.4.320.0030.00316.60
7.4.300.0030.00316.69
7.4.290.0030.00316.48
7.4.280.0080.00016.69
7.4.270.0000.00716.71
7.4.260.0080.00016.73
7.4.250.0040.00416.69
7.4.240.0040.00416.73
7.4.230.0000.00716.35
7.4.220.0100.01616.73
7.4.210.0070.00716.64
7.4.200.0070.00016.73
7.4.160.0130.00616.82
7.4.150.0170.00317.40
7.4.140.0070.01517.86
7.4.130.0080.01316.88
7.4.120.0110.01116.71
7.4.110.0190.00716.63
7.4.100.0120.00616.62
7.4.90.0060.01216.60
7.4.80.0130.01019.39
7.4.70.0130.00316.38
7.4.60.0090.00916.80
7.4.50.0060.00316.74
7.4.40.0050.01416.70
7.4.30.0150.00916.70
7.4.00.0030.01415.06
7.3.330.0030.00313.16
7.3.320.0070.00013.30
7.3.310.0070.00016.38
7.3.300.0060.00016.31
7.3.290.0070.01416.40
7.3.280.0090.00816.41
7.3.270.0090.01017.40
7.3.260.0100.02116.59
7.3.250.0100.00816.59
7.3.240.0040.01416.61
7.3.230.0090.00916.56
7.3.210.0070.01016.67
7.3.200.0130.01019.39
7.3.190.0100.00716.54
7.3.180.0120.00316.68
7.3.170.0120.00816.64
7.3.160.0060.01416.43
7.2.330.0170.00716.91
7.2.320.0120.00416.95
7.2.310.0120.00516.99
7.2.300.0100.01016.63
7.2.290.0100.01016.47
7.2.00.0140.00819.24
7.1.200.0030.00316.02
7.1.100.0040.00418.11
7.1.70.0030.00617.39
7.1.60.0030.00917.49
7.1.50.0040.00817.10
7.1.40.0040.00816.73
7.1.30.0080.00816.84
7.1.20.0040.01116.89
7.1.10.0050.00516.65
7.1.00.0030.01216.80
7.0.200.0000.00816.81
7.0.190.0000.00816.61
7.0.180.0050.00516.56
7.0.170.0040.00716.56
7.0.160.0000.01016.56
7.0.150.0090.00616.56
7.0.140.0060.01316.66
7.0.130.0000.01316.64
7.0.120.0060.01216.56
7.0.110.0040.00716.56
7.0.100.0070.00516.56
7.0.90.0000.01616.56
7.0.80.0100.00716.56
7.0.70.0120.00416.56
7.0.60.0090.00316.56
7.0.50.0130.00416.56
7.0.40.0050.00916.56
7.0.30.0070.00716.56
7.0.20.0100.00316.56
7.0.10.0120.00016.56
7.0.00.0030.00616.56
5.6.300.0070.04420.90
5.6.290.0030.05620.93
5.6.280.0060.06120.98
5.6.270.0070.04620.98
5.6.260.0040.05020.90
5.6.250.0030.04720.97
5.6.240.0100.04620.99
5.6.230.0070.05520.86
5.6.220.0060.05120.88
5.6.210.0030.04820.60
5.6.200.0060.05220.84
5.6.190.0100.06320.86
5.6.180.0100.04420.87
5.6.170.0060.04220.99
5.6.160.0070.04320.99
5.6.150.0000.05321.02
5.6.140.0070.08120.77
5.6.130.0070.04620.89
5.6.120.0130.03921.04
5.6.110.0040.04720.86
5.6.100.0060.05320.95
5.6.90.0070.04820.81
5.6.80.0000.04420.14
5.6.70.0000.04920.24
5.6.60.0030.08620.36
5.6.50.0000.04620.41
5.6.40.0090.03320.19
5.6.30.0030.04520.39
5.6.20.0030.05120.34
5.6.10.0000.04120.20
5.6.00.0030.05420.41
5.5.380.0070.04117.57
5.5.370.0030.05117.47
5.5.360.0090.05117.43
5.5.350.0030.05217.56
5.5.340.0040.04918.11
5.5.330.0030.04118.02
5.5.320.0100.04117.96
5.5.310.0040.04018.02
5.5.300.0000.04217.71
5.5.290.0070.04218.02
5.5.280.0000.04918.02
5.5.270.0100.03817.96
5.5.260.0060.04117.93
5.5.250.0040.04317.76
5.5.240.0000.03917.15
5.5.230.0030.04017.21
5.5.220.0030.08917.12
5.5.210.0030.04117.37
5.5.200.0070.08217.38
5.5.190.0030.06817.29
5.5.180.0000.04617.41
5.5.160.0070.03417.21
5.5.150.0100.03317.41
5.5.140.0030.04317.32
5.5.130.0000.04217.36
5.5.120.0070.06017.40
5.5.110.0070.08217.41
5.5.100.0000.04517.32
5.5.90.0030.03717.28
5.5.80.0200.02717.01
5.5.70.0070.07216.96
5.5.60.0000.04017.23
5.5.50.0030.04817.27
5.5.40.0000.04717.18
5.5.30.0070.06017.07
5.5.20.0000.04317.27
5.5.10.0100.03217.19
5.5.00.0000.04117.25
5.4.450.0040.04819.20
5.4.440.0030.05219.50
5.4.430.0070.03819.46
5.4.420.0090.03419.42
5.4.410.0030.04119.17
5.4.400.0040.03619.00
5.4.390.0030.03818.88
5.4.380.0100.03918.83
5.4.370.0070.03719.17
5.4.360.0000.04919.07
5.4.350.0000.05819.12
5.4.340.0030.03919.14
5.4.320.0070.04019.07
5.4.310.0060.03519.01
5.4.300.0000.03919.06
5.4.290.0000.08419.05
5.4.280.0100.06518.85
5.4.270.0000.08318.91
5.4.260.0060.06519.14
5.4.250.0030.03619.11
5.4.240.0000.07218.90
5.4.230.0070.06019.11
5.4.220.0100.05719.06
5.4.210.0060.03918.84
5.4.200.0100.03019.16
5.4.190.0000.04219.10
5.4.180.0040.04018.89
5.4.170.0030.03819.04
5.4.160.0070.03318.96
5.4.150.0030.03918.96
5.4.140.0000.03816.64
5.4.130.0030.03316.56
5.4.120.0070.03316.56
5.4.110.0030.03716.56
5.4.100.0030.03516.58
5.4.90.0000.04116.57
5.4.80.0000.05016.70
5.4.70.0000.04416.56
5.4.60.0030.03616.56
5.4.50.0000.04416.56
5.4.40.0030.04016.56
5.4.30.0030.03516.58
5.4.20.0000.06416.61
5.4.10.0030.03516.61
5.4.00.0000.04316.56
5.3.290.0000.04116.56
5.3.280.0000.04916.56
5.3.270.0100.03216.56
5.3.260.0160.03216.56
5.3.250.0170.03416.56
5.3.240.0030.03516.56
5.3.230.0070.05316.56
5.3.220.0000.04116.56
5.3.210.0030.04516.56
5.3.200.0070.04616.56
5.3.190.0060.03716.56
5.3.180.0030.03916.56
5.3.170.0060.03416.56
5.3.160.0030.03816.56
5.3.150.0030.03816.56
5.3.140.0090.03016.56
5.3.130.0070.03616.56
5.3.120.0060.04216.56
5.3.110.0000.05716.56
5.3.100.0030.04616.56
5.3.90.0060.03816.56
5.3.80.0000.03816.56
5.3.70.0030.04416.56
5.3.60.0070.03716.56
5.3.50.0000.04016.56
5.3.40.0030.03616.56
5.3.30.0060.07416.56
5.3.20.0000.03716.56
5.3.10.0030.03716.56
5.3.00.0000.03716.56
5.2.170.0000.03116.56
5.2.160.0000.02916.56
5.2.150.0030.02716.56
5.2.140.0000.03316.56
5.2.130.0000.03316.56
5.2.120.0060.02516.56
5.2.110.0000.03616.56
5.2.100.0030.03016.56
5.2.90.0000.03716.56
5.2.80.0060.02516.56
5.2.70.0000.04016.56
5.2.60.0030.03016.56
5.2.50.0030.03216.56
5.2.40.0000.03316.56
5.2.30.0030.03316.56
5.2.20.0030.02616.56
5.2.10.0070.06116.56
5.2.00.0100.04216.56
5.1.60.0000.02816.56
5.1.50.0040.02516.56
5.1.40.0000.02716.56
5.1.30.0070.02716.56
5.1.20.0000.02816.56
5.1.10.0030.02516.56
5.1.00.0070.02316.56
5.0.50.0000.02916.56
5.0.40.0070.02016.56
5.0.30.0000.03316.56
5.0.20.0000.02416.56
5.0.10.0030.01716.56
5.0.00.0000.03816.56
4.4.90.0000.01616.56
4.4.80.0000.02116.56
4.4.70.0030.01616.56
4.4.60.0000.02716.56
4.4.50.0030.01516.56
4.4.40.0070.05016.56
4.4.30.0030.01816.56
4.4.20.0090.01516.56
4.4.10.0030.01516.56
4.4.00.0000.03116.56
4.3.110.0000.01816.56
4.3.100.0030.01316.56
4.3.90.0060.01016.56
4.3.80.0060.05216.56
4.3.70.0030.03416.56
4.3.60.0000.03516.56
4.3.50.0040.02216.56
4.3.40.0000.03216.56
4.3.30.0000.02116.56
4.3.20.0000.01816.56
4.3.10.0030.01416.56
4.3.00.0000.01916.56

preferences:
51.74 ms | 401 KiB | 5 Q