3v4l.org

run code in 300+ PHP versions simultaneously
<?php $months = array( "Януари", "Февруари", "Март", "Април", "Май", "Юни", "Юли", "Август", "Септември", "Октомври", "Ноември", "Декември" ); $days_in_month = date('t'); $current_month_index = date("n") - 1; $day_of_the_month = date("j"); $day_of_the_week = date("w"); $day_of_the_week_difference = $day_of_the_week - ($day_of_the_month % 7); $elements_in_calendar = array(); for ($i = 0; $i < $day_of_the_week_difference; $i++) { array_push($elements_in_calendar, ""); } for ($i = 1; $i <= $days_in_month; $i++) { array_push($elements_in_calendar, $i); } ?> <html> <head> <style> table, td { border: 1px solid #000; text-align: center; border-collapse: collapse; } </style> </head> <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 = 0; $i < count($elements_in_calendar); $i++) { ?> <?php if ($i % 7 === 0) { ?> <?php if ($i != 1) { ?> </tr> <?php } ?> <tr> <?php } ?> <td><?php echo $elements_in_calendar[$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.60.0100.00718.30
8.3.50.0130.00922.10
8.3.40.0140.00718.95
8.3.30.0140.00419.12
8.3.20.0040.00420.33
8.3.10.0020.00523.61
8.3.00.0040.00419.38
8.2.180.0150.00416.75
8.2.170.0130.00722.96
8.2.160.0110.00420.27
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00522.19
8.2.110.0060.00320.35
8.2.100.0030.01018.34
8.2.90.0040.00419.39
8.2.80.0040.00817.97
8.2.70.0030.00617.62
8.2.60.0030.00518.03
8.2.50.0090.00018.07
8.2.40.0050.00318.34
8.2.30.0000.00918.12
8.2.20.0030.00618.04
8.2.10.0000.00718.11
8.2.00.0050.00618.00
8.1.280.0120.00925.92
8.1.270.0040.00423.80
8.1.260.0040.00426.35
8.1.250.0100.00328.09
8.1.240.0000.00923.92
8.1.230.0040.00719.07
8.1.220.0030.00617.91
8.1.210.0000.00818.77
8.1.200.0050.00917.13
8.1.190.0050.00317.38
8.1.180.0070.00418.10
8.1.170.0040.00418.77
8.1.160.0030.00521.98
8.1.150.0040.00419.01
8.1.140.0080.00017.62
8.1.130.0070.00318.00
8.1.120.0030.00417.56
8.1.110.0030.00517.53
8.1.100.0070.00017.53
8.1.90.0080.00017.55
8.1.80.0050.00317.56
8.1.70.0000.00717.64
8.1.60.0060.00317.59
8.1.50.0080.00017.65
8.1.40.0000.00817.64
8.1.30.0030.00617.71
8.1.20.0040.00417.66
8.1.10.0000.00817.71
8.1.00.0000.00817.64
8.0.300.0040.00418.77
8.0.290.0000.00717.00
8.0.280.0040.00418.55
8.0.270.0000.00717.41
8.0.260.0040.00417.29
8.0.250.0030.00317.11
8.0.240.0000.00717.21
8.0.230.0030.00317.15
8.0.220.0000.00717.03
8.0.210.0080.00017.16
8.0.200.0070.00017.19
8.0.190.0000.00817.13
8.0.180.0000.00817.04
8.0.170.0050.00317.14
8.0.160.0040.00417.01
8.0.150.0070.00017.16
8.0.140.0000.00717.07
8.0.130.0000.00513.50
8.0.120.0030.00517.00
8.0.110.0000.00817.18
8.0.100.0040.00416.93
8.0.90.0070.00017.10
8.0.80.0090.00617.09
8.0.70.0070.00017.26
8.0.60.0070.00016.96
8.0.50.0040.00417.20
8.0.30.0140.00617.23
8.0.20.0130.00917.49
8.0.10.0070.00017.22
8.0.00.0140.00916.94
7.4.330.0000.00515.00
7.4.320.0000.00716.73
7.4.300.0000.00716.61
7.4.290.0070.00016.61
7.4.280.0030.00616.64
7.4.270.0030.00316.52
7.4.260.0070.00016.61
7.4.250.0040.00416.59
7.4.240.0050.00216.67
7.4.230.0070.00016.44
7.4.220.0160.01016.61
7.4.210.0120.00316.81
7.4.200.0000.00816.63
7.4.160.0090.00916.70
7.4.150.0180.00717.40
7.4.140.0110.01317.86
7.4.130.0140.00416.72
7.4.120.0110.00716.52
7.4.110.0100.01316.80
7.4.100.0140.00716.77
7.4.90.0060.01216.70
7.4.80.0070.01119.39
7.4.70.0100.00716.68
7.4.60.0100.00716.69
7.4.50.0000.00616.57
7.4.40.0110.00816.61
7.4.30.0150.00316.75
7.4.00.0070.00714.80
7.3.330.0070.00013.34
7.3.320.0030.00313.21
7.3.310.0070.00016.34
7.3.300.0000.00816.36
7.3.290.0080.00616.32
7.3.280.0060.01116.37
7.3.270.0100.00817.40
7.3.260.0130.00616.63
7.3.250.0100.00716.44
7.3.240.0070.01216.66
7.3.230.0100.00716.61
7.3.210.0030.01616.34
7.3.200.0080.01019.39
7.3.190.0070.01416.61
7.3.180.0110.00416.70
7.3.170.0030.01316.59
7.3.160.0130.00716.65
7.3.120.0110.00015.21
7.3.110.0070.01015.25
7.3.100.0030.00914.96
7.3.90.0030.01015.08
7.3.80.0070.00715.17
7.3.70.0070.00415.04
7.3.60.0070.00715.25
7.3.50.0030.01014.93
7.3.40.0090.00315.10
7.3.30.0070.00714.96
7.3.20.0090.00616.90
7.3.10.0050.00716.74
7.3.00.0050.00816.92
7.2.330.0060.01216.78
7.2.320.0110.01116.87
7.2.310.0130.01016.57
7.2.300.0160.00316.80
7.2.290.0120.00616.89
7.2.240.0130.00315.10
7.2.230.0080.00815.27
7.2.220.0000.01215.08
7.2.210.0060.00915.52
7.2.200.0080.00815.25
7.2.190.0040.01114.91
7.2.180.0040.01215.32
7.2.170.0060.00915.30
7.2.160.0040.00715.32
7.2.150.0130.00717.21
7.2.140.0080.00416.82
7.2.130.0060.00617.05
7.2.120.0070.00716.89
7.2.110.0090.00717.12
7.2.100.0100.00716.93
7.2.90.0090.00616.80
7.2.80.0070.00817.01
7.2.70.0030.00817.11
7.2.60.0040.01016.96
7.2.50.0080.00517.10
7.2.40.0030.01117.14
7.2.30.0060.00816.90
7.2.20.0060.00516.97
7.2.10.0080.00416.91
7.2.00.0060.01017.74
7.1.330.0030.00915.98
7.1.320.0000.01215.95
7.1.310.0040.00715.82
7.1.300.0030.00715.91
7.1.290.0040.00416.08
7.1.280.0000.01116.00
7.1.270.0090.00915.67
7.1.260.0040.01116.02
7.1.250.0080.00715.94
7.1.200.0040.00715.84
7.1.100.0040.00818.11
7.1.70.0000.00817.05
7.1.60.0030.02219.32
7.1.50.0040.01817.15
7.1.00.0030.07722.54
7.0.200.0040.00416.78
7.0.140.0070.07022.09
7.0.100.0100.05719.98
7.0.90.0130.06319.96
7.0.80.0070.04720.02
7.0.70.0000.04719.88
7.0.60.0030.04719.80
7.0.50.0100.03320.30
7.0.40.0100.03720.04
7.0.30.0100.06020.10
7.0.20.0030.04320.05
7.0.10.0000.04719.95
7.0.00.0070.04020.07
5.6.280.0070.07021.09
5.6.250.0000.04320.50
5.6.240.0070.03720.55
5.6.230.0070.04320.64
5.6.220.0070.04020.74
5.6.210.0070.03720.76
5.6.200.0030.04021.09
5.6.190.0070.04021.08
5.6.180.0000.05021.07
5.6.170.0030.04021.18
5.6.160.0030.03721.09
5.6.150.0030.04020.95
5.6.140.0070.04020.96
5.6.130.0100.03721.08
5.6.120.0170.04720.94
5.6.110.0030.08321.07
5.6.100.0100.08021.01
5.6.90.0100.08021.06
5.6.80.0100.08020.50
5.6.70.0030.08320.34
5.6.60.0070.04720.51
5.6.50.0100.07720.43
5.6.40.0070.07720.43
5.6.30.0030.05320.48
5.6.20.0030.08020.38
5.6.10.0070.07720.38
5.6.00.0170.06320.42
5.5.380.0030.04020.42
5.5.370.0070.03720.41
5.5.360.0130.03720.41
5.5.350.0070.05720.40
5.5.340.0100.03320.86
5.5.330.0000.04320.87
5.5.320.0030.04320.87
5.5.310.0000.04720.90
5.5.300.0000.04320.86
5.5.290.0100.04320.89
5.5.280.0000.04020.82
5.5.270.0070.04020.91
5.5.260.0000.08320.75
5.5.250.0030.07720.60
5.5.240.0030.08020.32
5.5.230.0100.07320.32
5.5.220.0030.08720.02
5.5.210.0070.05320.27
5.5.200.0070.08020.00
5.5.190.0130.07720.24
5.5.180.0070.08720.22
5.5.160.0130.04020.00
5.5.150.0100.08020.18
5.5.140.0130.07320.19
5.5.130.0000.08320.18
5.5.120.0130.07720.13
5.5.110.0100.07320.28
5.5.100.0100.07020.08
5.5.90.0100.04720.05
5.5.80.0070.07320.02
5.5.70.0100.06720.03
5.5.60.0070.06320.12
5.5.50.0070.04320.09
5.5.40.0100.06320.06
5.5.30.0230.06320.14
5.5.20.0070.04020.05
5.5.10.0130.04720.14
5.5.00.0070.05020.07
5.4.450.0100.04719.44
5.4.440.0030.04019.55
5.4.430.0030.04019.46
5.4.420.0100.03319.49
5.4.410.0130.06719.14
5.4.400.0000.08318.98
5.4.390.0170.05719.05
5.4.380.0000.05019.10
5.4.370.0070.03719.13
5.4.360.0070.04318.81
5.4.350.0170.06718.98
5.4.340.0030.05019.24
5.4.320.0100.07018.79
5.4.310.0130.07018.79
5.4.300.0070.07319.02
5.4.290.0070.07718.81
5.4.280.0100.07019.08
5.4.270.0070.07019.00
5.4.260.0070.08019.02
5.4.250.0100.07318.97
5.4.240.0170.07019.02
5.4.230.0100.03719.21
5.4.220.0070.04319.02
5.4.210.0000.04718.97
5.4.200.0030.04318.96
5.4.190.0100.06019.11
5.4.180.0070.07719.13
5.4.170.0070.07319.13
5.4.160.0230.02718.79
5.4.150.0030.08019.12
5.4.140.0030.07016.43
5.4.130.0070.06716.38
5.4.120.0070.03716.32
5.4.110.0070.07016.39
5.4.100.0100.04016.42
5.4.90.0100.06716.36
5.4.80.0200.06016.30
5.4.70.0100.06716.29
5.4.60.0100.06316.36
5.4.50.0000.07316.29
5.4.40.0030.04716.37
5.4.30.0070.03716.39
5.4.20.0130.06016.32
5.4.10.0070.05316.41
5.4.00.0130.06715.72
5.3.290.0030.04714.51
5.3.280.0070.07314.55
5.3.270.0070.04714.44
5.3.260.0070.08014.60
5.3.250.0170.06714.61
5.3.240.0100.06714.53
5.3.230.0100.07314.46
5.3.220.0070.03314.54
5.3.210.0070.04314.41
5.3.200.0170.05014.54
5.3.190.0100.07714.54
5.3.180.0030.07714.55
5.3.170.0030.07014.44
5.3.160.0070.04314.43
5.3.150.0100.06714.53
5.3.140.0030.08014.43
5.3.130.0130.06714.51
5.3.120.0070.06014.43
5.3.110.0030.08014.57
5.3.100.0100.05313.98
5.3.90.0100.07014.00
5.3.80.0030.07713.88
5.3.70.0170.06013.89
5.3.60.0030.08013.99
5.3.50.0070.07313.96
5.3.40.0100.05313.82
5.3.30.0130.06013.86
5.3.20.0070.07313.70
5.3.10.0030.07713.43
5.3.00.0070.07313.59
5.2.170.0030.06311.20
5.2.160.0070.06011.18
5.2.150.0100.06011.03
5.2.140.0030.06311.00
5.2.130.0070.05711.12
5.2.120.0100.05311.16
5.2.110.0070.03011.12
5.2.100.0100.06011.16
5.2.90.0130.05311.17
5.2.80.0130.05010.95
5.2.70.0030.06711.16
5.2.60.0030.06711.05
5.2.50.0030.06010.98
5.2.40.0030.06011.01
5.2.30.0070.03310.79
5.2.20.0100.04710.95
5.2.10.0070.06310.89
5.2.00.0000.03710.79
5.1.60.0000.04310.07
5.1.50.0030.0509.85
5.1.40.0000.05310.04
5.1.30.0130.05010.41
5.1.20.0070.05310.22
5.1.10.0130.04310.07
5.1.00.0070.05310.07
5.0.50.0030.0478.60
5.0.40.0070.0438.41
5.0.30.0030.0638.24
5.0.20.0070.0408.26
5.0.10.0000.0478.17
5.0.00.0030.0708.24
4.4.90.0070.0177.25
4.4.80.0000.0237.25
4.4.70.0070.0307.25
4.4.60.0070.0137.25
4.4.50.0000.0337.25
4.4.40.0030.0507.25
4.4.30.0000.0377.25
4.4.20.0000.0377.25
4.4.10.0030.0377.25
4.4.00.0000.0607.25
4.3.110.0000.0277.25
4.3.100.0070.0307.25
4.3.90.0000.0377.25
4.3.80.0000.0537.25
4.3.70.0070.0307.25
4.3.60.0030.0207.25
4.3.50.0000.0277.25
4.3.40.0030.0577.25
4.3.30.0030.0277.25
4.3.20.0070.0177.25
4.3.10.0000.0377.25
4.3.00.0030.0307.25

preferences:
45.89 ms | 401 KiB | 5 Q