3v4l.org

run code in 300+ PHP versions simultaneously
<?php $today = date("d"); // Current day $month = date("m"); // Current month $year = date("Y"); // Current year // days in month $daysInMonth = date('t',mktime(0,0,0,$month,1,$year)); // weekday on which the month starts $start = date("w", mktime(0,0,0,$month,1,$year)); // weekday on which the month ends $finish = date("w", mktime(0,0,0,$month,$daysInMonth,$year)); // if the month starts NOT on monday, then print blank days if ($start > 1) { for($i = 1; $i = $start; $i++) { $calendarBody .= "<div>nėr dienos</div>"; } } for($i = 1; $i = $daysInMonth; $i++) { $calendarBody .= "<div>diena</div>"; } echo $calendarBody;

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.0630.11950.15
8.3.50.0910.14550.04
8.3.40.0430.06036.34
8.3.30.0270.06736.61
8.3.20.0230.03337.99
8.3.10.0270.02339.64
8.3.00.0140.03135.46
8.2.180.0670.11150.28
8.2.170.0270.06136.58
8.2.160.0330.05637.87
8.2.150.0270.02736.38
8.2.140.0340.02136.61
8.2.130.0230.03638.36
8.2.120.0240.02438.32
8.2.110.0380.05435.57
8.2.100.0360.05935.36
8.2.90.0230.05335.52
8.2.80.0300.04736.50
8.2.70.0200.06035.22
8.2.60.0200.05535.50
8.2.50.0070.06635.45
8.2.40.0300.04335.70
8.2.30.0190.05535.63
8.2.20.0160.05335.35
8.2.10.0120.05735.78
8.2.00.0170.05135.42
8.1.280.0740.09849.84
8.1.270.0380.04839.46
8.1.260.0260.03036.44
8.1.250.0190.02939.86
8.1.240.0200.04039.91
8.1.230.0290.05838.88
8.1.220.0130.06334.81
8.1.210.0230.05734.80
8.1.200.0170.06134.87
8.1.190.0130.05934.78
8.1.180.0230.05934.79
8.1.170.0100.05735.24
8.1.160.0170.05639.50
8.1.150.0130.06836.30
8.1.140.0130.05735.10
8.1.130.0070.05635.33
8.1.120.0130.05335.18
8.1.110.0170.07435.12
8.1.100.0160.05135.11
8.1.90.0170.05335.17
8.1.80.0130.05235.03
8.1.70.0070.06235.06
8.1.60.0070.06635.10
8.1.50.0100.05935.13
8.1.40.0070.06235.15
8.1.30.0030.06835.07
8.1.20.0100.05735.22
8.1.10.0200.12051.03
8.1.00.0330.11051.00
8.0.300.0420.13050.31
8.0.290.0470.11450.37
8.0.280.0160.12551.90
8.0.270.0260.12550.79
8.0.260.0230.11850.40
8.0.250.0130.12050.46
8.0.240.0100.13350.58
8.0.230.0260.11250.58
8.0.220.0200.12350.32
8.0.210.0340.10550.43
8.0.200.0240.11650.42
8.0.190.0230.12550.43
8.0.180.0200.12750.48
8.0.170.0400.09750.43
8.0.160.0230.12750.33
8.0.150.0200.12550.48
8.0.140.0300.12450.45
8.0.130.0870.26778.85
8.0.120.0230.12350.37
8.0.110.0140.12250.39
8.0.100.0200.12450.37
8.0.90.0260.11250.52
8.0.80.0760.22450.40
8.0.70.0200.11950.31
8.0.60.0330.10750.31
8.0.50.0260.11450.52
8.0.30.1050.22450.60
8.0.20.0720.17350.49
8.0.10.0300.12450.64
8.0.00.0920.20450.19
7.4.330.0170.12347.19
7.4.320.0230.12349.95
7.4.300.0130.13249.86
7.4.290.0330.11150.00
7.4.280.0200.12750.07
7.4.270.0170.13149.89
7.4.260.0240.12549.95
7.4.250.0300.12849.98
7.4.240.0320.11849.89
7.4.230.0170.13450.08
7.4.220.0750.21349.92
7.4.210.0570.17149.99
7.4.200.0270.12149.69
7.4.190.0330.11349.96
7.4.160.0590.18549.91
7.4.150.0770.19549.99
7.4.140.0740.22550.00
7.4.130.0660.18549.95
7.4.120.0790.18349.94
7.4.110.0800.17550.07
7.4.100.0830.18949.96
7.4.90.0920.23049.99
7.4.80.0770.18850.14
7.4.70.0460.20849.98
7.4.60.0740.17149.99
7.4.50.0200.11950.16
7.4.40.0430.13049.87
7.4.30.0660.18249.70
7.4.10.0360.25648.38
7.4.00.0370.20148.43
7.3.330.0470.22678.75
7.3.320.0590.26478.64
7.3.310.0200.11849.87
7.3.300.0330.10549.91
7.3.290.0910.23049.81
7.3.280.0720.19249.82
7.3.270.0870.17149.95
7.3.260.1000.21050.00
7.3.250.0980.20149.97
7.3.240.0820.20449.96
7.3.230.0660.18550.04
7.3.210.0870.20149.94
7.3.200.0850.18349.95
7.3.190.1190.26249.82
7.3.180.0770.16749.72
7.3.170.0980.16650.02
7.3.160.0820.15549.96
7.3.130.0400.18648.50
7.3.120.0360.18348.22
7.3.110.0360.14848.42
7.3.100.0250.16048.43
7.3.90.0220.19548.40
7.3.80.0350.17748.17
7.3.70.0280.15248.31
7.3.60.0300.18348.45
7.3.50.0220.15348.40
7.3.40.0330.16248.09
7.3.30.0270.18848.45
7.3.20.0230.15048.63
7.3.10.0230.14048.62
7.3.00.0300.14348.74
7.2.330.0760.22250.01
7.2.320.0660.25650.19
7.2.310.0980.24050.00
7.2.300.0830.20250.13
7.2.290.0970.27250.27
7.2.260.0360.20448.75
7.2.250.0430.20948.76
7.2.240.0330.21948.56
7.2.230.0430.22248.50
7.2.220.0300.24248.55
7.2.210.0320.20148.45
7.2.200.0430.22848.65
7.2.190.0340.17948.49
7.2.180.0260.18248.56
7.2.170.0420.18548.47
7.2.160.0270.25948.71
7.2.150.0300.21848.82
7.2.140.0280.21448.70
7.2.130.0320.20948.70
7.2.120.0130.20348.84
7.2.110.0760.21148.88
7.2.100.0380.17848.76
7.2.90.0340.24448.95
7.2.80.0510.17848.75
7.2.70.0360.21648.91
7.2.60.0510.20148.89
7.2.50.0350.21148.78
7.2.40.0440.22448.85
7.2.30.0490.20448.92
7.2.20.0410.18848.71
7.2.10.0440.19748.83
7.2.00.0430.17549.51
7.1.330.0330.28047.61
7.1.320.0310.29947.88
7.1.310.0300.28747.90
7.1.300.0330.27447.87
7.1.290.0320.23847.76
7.1.280.0180.26247.93
7.1.270.0250.30147.97
7.1.260.0230.30647.76
7.1.250.0280.26547.74
7.1.240.0360.38147.68
7.1.230.0290.22748.03
7.1.220.0830.26547.74
7.1.210.0500.19647.95
7.1.200.0390.21147.93
7.1.190.0440.24647.80
7.1.180.0330.24347.58
7.1.170.0380.24447.96
7.1.160.0820.25047.74
7.1.150.0740.20148.00
7.1.140.0540.20547.69
7.1.130.0490.23347.91
7.1.120.0500.22247.82
7.1.110.0440.28048.09
7.1.100.0300.22548.61
7.1.90.0540.22647.94
7.1.80.0350.23047.88
7.1.70.0520.23448.29
7.1.60.0390.23848.64
7.1.50.0460.23848.52
7.1.40.0310.22748.02
7.1.30.1070.26248.10
7.1.20.0570.25256.90
7.1.10.0680.20247.79
7.1.00.0440.21849.96
7.0.330.0230.38447.50
7.0.320.0270.34947.41
7.0.310.0350.21547.43
7.0.300.0330.23747.44
7.0.290.0530.24947.40
7.0.280.0590.24647.46
7.0.270.0450.26547.55
7.0.260.0330.26747.59
7.0.250.0460.26447.51
7.0.240.0470.22547.59
7.0.230.0340.25347.63
7.0.220.0470.22247.36
7.0.210.0750.23247.53
7.0.200.0450.21847.85
7.0.190.0380.26547.60
7.0.180.0460.26947.68
7.0.170.0570.26647.62
7.0.160.0400.22547.56
7.0.150.0450.29547.54
7.0.140.0320.21849.62
7.0.130.0440.21047.46
7.0.120.0550.26547.72
7.0.110.0390.24247.69
7.0.100.0400.25747.51
7.0.90.0590.24249.63
7.0.80.0460.20149.64
7.0.70.0450.25049.63
7.0.60.0410.25049.65
7.0.50.0480.22649.88
7.0.40.0440.24645.77
7.0.30.0380.25745.89
7.0.20.0450.22145.63
7.0.10.0320.25245.68
7.0.00.0410.20145.84
5.6.400.0431.25978.64
5.6.390.0301.43078.55
5.6.380.0380.95778.18
5.6.370.0410.89678.30
5.6.360.0331.01378.21
5.6.350.0441.01778.33
5.6.340.0451.03978.33
5.6.330.0311.01978.42
5.6.320.0321.10478.29
5.6.310.0480.98278.14
5.6.300.0401.01378.11
5.6.290.0411.10178.48
5.6.280.0300.88080.49
5.6.270.0370.92478.25
5.6.260.0281.14378.26
5.6.250.0221.10578.27
5.6.240.0270.88380.59
5.6.230.0440.93580.28
5.6.220.0270.86380.38
5.6.210.0350.89580.21
5.6.200.0270.88880.34
5.6.190.0290.91880.50
5.6.180.0350.97280.43
5.6.170.0340.93580.46
5.6.160.0270.83480.43
5.6.150.0400.79980.34
5.6.140.0300.87380.43
5.6.130.0270.87580.33
5.6.120.0270.97880.40
5.6.110.0310.80780.50
5.6.100.0360.90580.61
5.6.90.0320.90880.42
5.6.80.0380.84480.16
5.6.70.0370.85080.07
5.6.60.0290.83980.20
5.6.50.0380.83280.23
5.6.40.0320.87280.15
5.6.30.0260.88180.19
5.6.20.0310.90479.99
5.6.10.0240.92280.20
5.6.00.0240.88780.18
5.5.380.0390.83179.08
5.5.370.0320.81979.08
5.5.360.0260.87779.15
5.5.350.0220.82979.17
5.5.340.0250.81579.25
5.5.330.0250.97579.33
5.5.320.0270.89579.22
5.5.310.0300.82679.33
5.5.300.0310.95479.24
5.5.290.0330.89579.28
5.5.280.0270.97079.21
5.5.270.0270.89179.33
5.5.260.0290.96379.33
5.5.250.0400.95079.11
5.5.240.0250.80179.02
5.5.230.0270.81678.87
5.5.220.0300.90679.10
5.5.210.0190.87479.06
5.5.200.0530.85979.02
5.5.190.0270.82678.93
5.5.180.0280.83379.03
5.5.170.0260.87577.98
5.5.160.0280.82379.00
5.5.150.0230.91278.86
5.5.140.0330.75178.93
5.5.130.0220.91078.92
5.5.120.0200.90878.93
5.5.110.0270.85578.91
5.5.100.0300.90378.89
5.5.90.0350.89178.95
5.5.80.0390.85779.11
5.5.70.0381.01778.90
5.5.60.0260.89778.89
5.5.50.0320.81878.82
5.5.40.0240.85778.89
5.5.30.0230.71878.95
5.5.20.0270.87078.95
5.5.10.0330.85478.87
5.5.00.0240.85279.02
5.4.450.0310.96977.66
5.4.440.0370.85477.58
5.4.430.0330.81777.61
5.4.420.0280.88777.64
5.4.410.0250.80877.52
5.4.400.0300.93777.40
5.4.390.0260.77177.36
5.4.380.0250.91777.42
5.4.370.0350.81377.48
5.4.360.0290.83777.36
5.4.350.0320.78677.27
5.4.340.0280.92177.43
5.4.330.0280.87974.72
5.4.320.0400.86677.54
5.4.310.0190.77677.33
5.4.300.0410.85177.49
5.4.290.0290.87777.42
5.4.280.0300.86177.46
5.4.270.0240.71977.50
5.4.260.0270.86577.38
5.4.250.0270.87577.38
5.4.240.0260.74977.50
5.4.230.0210.76677.42
5.4.220.0380.92077.42
5.4.210.0260.89577.46
5.4.200.0200.94277.41
5.4.190.0290.86177.48
5.4.180.0220.81777.40
5.4.170.0220.92777.30
5.4.160.0190.95177.38
5.4.150.0280.94877.37
5.4.140.0230.77576.43
5.4.130.0190.96576.54
5.4.120.0220.85976.66
5.4.110.0290.92776.65
5.4.100.0320.78976.65
5.4.90.0380.88476.57
5.4.80.0280.91976.65
5.4.70.0250.71076.47
5.4.60.0230.90876.61
5.4.50.0190.90176.58
5.4.40.0310.92976.61
5.4.30.0300.90676.52
5.4.20.0320.90476.51
5.4.10.0240.97076.56
5.4.00.0260.83276.40
5.3.290.0370.84875.53
5.3.280.0230.86475.40
5.3.270.0230.86175.42
5.3.260.0300.90675.39
5.3.250.0310.77575.38
5.3.240.0190.76475.43
5.3.230.0320.86975.42
5.3.220.0260.83575.36
5.3.210.0380.82275.21
5.3.200.0230.88175.31
5.3.190.0190.85475.31
5.3.180.0300.85175.37
5.3.170.0320.80775.38
5.3.160.0230.90075.33
5.3.150.0260.80775.36
5.3.140.0290.81475.33
5.3.130.0280.92375.33
5.3.120.0130.92675.32
5.3.110.0250.81575.34
5.3.100.0330.80675.20
5.3.90.0270.89875.13
5.3.80.0220.88375.00
5.3.70.0200.81374.90
5.3.60.0500.82575.16
5.3.50.0190.84174.93
5.3.40.0230.84975.04
5.3.30.0220.78375.04
5.3.20.0290.73574.91
5.3.10.0320.77874.83
5.3.00.0320.73474.72

preferences:
43.91 ms | 401 KiB | 5 Q