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.40.0150.00018.96
8.3.30.0040.01119.21
8.3.20.0040.00420.16
8.3.10.0000.00923.66
8.3.00.0070.00317.88
8.2.170.0060.00922.96
8.2.160.0110.00420.52
8.2.150.0050.00324.18
8.2.140.0060.01224.66
8.2.130.0000.00726.16
8.2.120.0080.00022.06
8.2.110.0060.00322.25
8.2.100.0080.00418.03
8.2.90.0080.00019.35
8.2.80.0040.00417.97
8.2.70.0030.00617.75
8.2.60.0040.00418.16
8.2.50.0000.00818.07
8.2.40.0060.00318.34
8.2.30.0040.00418.15
8.2.20.0040.00417.84
8.2.10.0000.00918.21
8.2.00.0080.00317.79
8.1.270.0000.00822.14
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0000.01119.01
8.1.230.0110.00019.10
8.1.220.0090.00017.78
8.1.210.0000.00818.77
8.1.200.0030.00717.48
8.1.190.0040.00417.48
8.1.180.0040.00418.10
8.1.170.0040.00418.64
8.1.160.0000.00722.01
8.1.150.0050.00218.90
8.1.140.0000.00917.44
8.1.130.0030.00617.93
8.1.120.0070.00017.62
8.1.110.0030.00517.60
8.1.100.0050.00317.51
8.1.90.0040.00417.55
8.1.80.0080.00017.59
8.1.70.0030.00317.50
8.1.60.0030.00517.55
8.1.50.0060.00317.65
8.1.40.0000.00717.61
8.1.30.0060.00317.66
8.1.20.0040.00417.77
8.1.10.0070.00017.66
8.1.00.0040.00417.63
8.0.300.0060.00318.77
8.0.290.0040.00417.00
8.0.280.0050.00318.42
8.0.270.0040.00417.41
8.0.260.0070.00018.61
8.0.250.0000.00717.18
8.0.240.0030.00317.19
8.0.230.0040.00417.11
8.0.220.0030.00317.01
8.0.210.0030.00317.20
8.0.200.0030.00617.04
8.0.190.0040.00417.17
8.0.180.0040.00417.12
8.0.170.0000.00817.09
8.0.160.0070.00016.94
8.0.150.0040.00416.97
8.0.140.0000.01016.90
8.0.130.0030.00313.38
8.0.120.0040.00417.05
8.0.110.0070.00017.03
8.0.100.0040.00416.85
8.0.90.0040.00416.95
8.0.80.0130.01017.05
8.0.70.0040.00417.02
8.0.60.0020.00516.89
8.0.50.0000.00817.09
8.0.30.0140.00917.30
8.0.20.0140.00817.40
8.0.10.0070.00017.05
8.0.00.0120.00716.95
7.4.330.0000.00615.00
7.4.320.0000.00616.69
7.4.300.0000.00616.61
7.4.290.0030.00316.69
7.4.280.0000.00916.61
7.4.270.0050.00316.55
7.4.260.0040.00416.54
7.4.250.0060.00316.71
7.4.240.0050.00216.62
7.4.230.0000.00816.80
7.4.220.0130.00616.72
7.4.210.0030.01016.73
7.4.200.0030.00316.77
7.4.160.0070.01016.54
7.4.150.0130.00617.40
7.4.140.0140.00617.86
7.4.130.0120.00616.61
7.4.120.0120.00716.69
7.4.110.0180.00616.64
7.4.100.0090.00916.84
7.4.90.0170.00316.58
7.4.80.0070.01019.39
7.4.70.0140.00416.68
7.4.60.0030.01316.62
7.4.50.0040.00416.62
7.4.40.0060.01516.48
7.4.30.0080.01516.49
7.4.00.0030.01415.15
7.3.330.0030.00313.23
7.3.320.0050.00313.17
7.3.310.0000.00716.46
7.3.300.0030.00316.35
7.3.290.0060.00916.39
7.3.280.0100.00816.39
7.3.270.0080.01217.40
7.3.260.0060.01316.64
7.3.250.0160.00316.57
7.3.240.0150.00916.51
7.3.230.0080.01116.48
7.3.210.0100.00916.47
7.3.200.0090.00919.39
7.3.190.0140.01016.62
7.3.180.0060.01016.49
7.3.170.0070.01016.69
7.3.160.0150.00316.42
7.2.330.0110.00716.66
7.2.320.0050.01416.91
7.2.310.0190.00316.86
7.2.300.0130.00716.68
7.2.290.0070.01016.59
7.2.60.0130.00016.93
7.2.00.0220.00319.12
7.1.200.0120.00015.82
7.1.100.0040.01118.28
7.1.70.0030.00617.33
7.1.60.0140.01119.32
7.1.50.0140.01017.12
7.1.00.0100.07022.45
7.0.200.0000.00816.81
7.0.140.0170.06322.15
7.0.80.0600.07319.90
7.0.70.0400.04319.95
7.0.60.0630.07319.90
7.0.50.0530.09020.34
7.0.40.0070.05020.08
7.0.30.0100.07020.09
7.0.20.0070.05720.04
7.0.10.0070.07720.00
7.0.00.0200.07320.04
5.6.280.0030.07320.93
5.6.230.0000.08720.69
5.6.220.0000.09320.59
5.6.210.0030.08320.67
5.6.200.0100.03721.09
5.6.190.0130.08321.07
5.6.180.0030.08720.95
5.6.170.0100.04021.02
5.6.160.0030.09021.05
5.6.150.0100.08020.96
5.6.140.0130.06721.08
5.6.130.0000.05721.04
5.6.120.0030.06021.02
5.6.110.0100.08021.12
5.6.100.0030.08320.93
5.6.90.0100.04721.00
5.6.80.0200.05320.52
5.6.70.0100.07720.48
5.6.60.0130.06720.33
5.6.50.0130.08020.43
5.6.40.0100.04320.42
5.6.30.0130.06720.47
5.6.20.0030.05320.32
5.6.10.0230.03020.29
5.6.00.0170.07320.30
5.5.370.0130.07720.52
5.5.360.0070.07320.49
5.5.350.0070.05020.38
5.5.340.0100.08020.77
5.5.330.0100.07320.93
5.5.320.0130.07320.74
5.5.310.0130.07720.89
5.5.300.0100.08020.88
5.5.290.0170.07320.93
5.5.280.0070.08320.88
5.5.270.0130.07720.92
5.5.260.0130.07720.64
5.5.250.0000.08320.72
5.5.240.0030.08720.25
5.5.230.0070.04720.12
5.5.220.0100.07720.30
5.5.210.0070.07320.21
5.5.200.0100.07720.12
5.5.190.0100.07720.24
5.5.180.0100.08020.22
5.5.160.0170.03720.19
5.5.150.0100.07720.25
5.5.140.0100.04320.18
5.5.130.0070.07720.24
5.5.120.0170.07720.23
5.5.110.0070.08320.28
5.5.100.0030.08020.17
5.5.90.0100.07720.07
5.5.80.0070.08020.17
5.5.70.0100.07320.09
5.5.60.0100.04020.12
5.5.50.0070.07020.15
5.5.40.0030.07020.03
5.5.30.0030.08320.11
5.5.20.0000.05020.15
5.5.10.0170.07720.02
5.5.00.0070.05019.92
5.4.450.0170.07319.23
5.4.440.0100.08019.42
5.4.430.0130.06719.13
5.4.420.0100.04019.37
5.4.410.0000.05019.27
5.4.400.0070.06719.17
5.4.390.0130.07019.03
5.4.380.0200.06319.08
5.4.370.0030.04718.90
5.4.360.0070.07019.03
5.4.350.0030.07719.12
5.4.340.0070.04718.79
5.4.320.0070.03718.93
5.4.310.0100.06018.94
5.4.300.0170.07018.96
5.4.290.0070.08018.97
5.4.280.0170.05718.81
5.4.270.0030.06018.98
5.4.260.0000.05719.14
5.4.250.0100.07319.12
5.4.240.0030.07018.78
5.4.230.0100.06018.89
5.4.220.0100.07018.89
5.4.210.0070.07319.11
5.4.200.0130.03719.12
5.4.190.0030.08019.13
5.4.180.0070.07318.89
5.4.170.0130.07018.83
5.4.160.0100.04019.00
5.4.150.0170.07019.03
5.4.140.0130.05016.36
5.4.130.0000.05316.17
5.4.120.0100.04016.41
5.4.110.0030.07316.43
5.4.100.0100.06716.26
5.4.90.0100.06716.42
5.4.80.0130.06716.44
5.4.70.0130.07016.46
5.4.60.0130.06716.36
5.4.50.0030.04716.41
5.4.40.0070.04016.33
5.4.30.0030.03716.34
5.4.20.0100.07016.31
5.4.10.0100.06716.28
5.4.00.0170.06315.71
5.3.290.0000.05014.50
5.3.280.0070.05314.59
5.3.270.0070.07714.47
5.3.260.0000.08314.43
5.3.250.0030.08014.55
5.3.240.0170.07014.57
5.3.230.0030.08714.60
5.3.220.0100.07014.44
5.3.210.0070.04714.54
5.3.200.0100.06714.54
5.3.190.0100.04014.55
5.3.180.0130.06714.43
5.3.170.0030.08314.56
5.3.160.0030.07714.43
5.3.150.0000.04014.53
5.3.140.0030.07714.42
5.3.130.0070.07714.39
5.3.120.0030.08014.52
5.3.110.0030.07014.55
5.3.100.0030.04714.03
5.3.90.0070.06013.98
5.3.80.0000.08013.94
5.3.70.0070.07313.88
5.3.60.0070.06713.96
5.3.50.0070.07013.94
5.3.40.0070.04713.94
5.3.30.0030.06013.87
5.3.20.0200.03013.69
5.3.10.0070.06313.57
5.3.00.0030.05313.59
5.2.170.0100.05711.22
5.2.160.0000.04011.02
5.2.150.0170.02310.95
5.2.140.0100.06010.97
5.2.130.0030.05711.07
5.2.120.0100.05711.16
5.2.110.0070.04711.09
5.2.100.0100.05010.96
5.2.90.0100.05011.13
5.2.80.0070.06011.14
5.2.70.0070.06011.09
5.2.60.0030.04710.88
5.2.50.0070.06010.88
5.2.40.0000.05711.08
5.2.30.0000.05310.83
5.2.20.0030.06710.95
5.2.10.0170.02310.83
5.2.00.0070.07010.86
5.1.60.0030.05310.83
5.1.50.0130.05010.83
5.1.40.0030.04010.83
5.1.30.0030.03010.83
5.1.20.0030.06010.83
5.1.10.0030.04010.83
5.1.00.0070.04310.83
5.0.50.0070.04010.83
5.0.40.0000.02010.83
5.0.30.0030.02710.83
5.0.20.0030.04010.83
5.0.10.0030.04310.83
5.0.00.0100.06010.83
4.4.90.0000.04010.83
4.4.80.0030.02710.83
4.4.70.0000.03710.83
4.4.60.0000.02710.83
4.4.50.0030.03710.83
4.4.40.0000.05310.83
4.4.30.0030.03310.83
4.4.20.0030.03010.83
4.4.10.0000.03010.83
4.4.00.0030.04710.83
4.3.110.0070.03310.83
4.3.100.0070.02710.83
4.3.90.0030.03310.83
4.3.80.0030.03710.83
4.3.70.0030.03310.83
4.3.60.0030.01710.83
4.3.50.0070.01310.83
4.3.40.0000.05010.83
4.3.30.0000.03710.83
4.3.20.0030.03010.83
4.3.10.0000.03010.83
4.3.00.0000.03710.83

preferences:
42.46 ms | 400 KiB | 5 Q