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 $calendarBody = ""; // 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 = 30; $i++) { echo "a"; }

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.0590.00718.43
8.3.50.0620.01422.05
8.3.40.0690.01318.81
8.3.30.0590.01618.84
8.3.20.0310.00718.68
8.3.10.0390.01320.82
8.3.00.0440.00723.66
8.2.180.0680.01416.38
8.2.170.0590.02022.96
8.2.160.0620.02020.52
8.2.150.0370.00324.18
8.2.140.0310.00624.66
8.2.130.0230.01326.16
8.2.120.0330.00721.00
8.2.110.0410.01020.35
8.2.100.0450.01017.97
8.2.90.0190.00619.20
8.2.80.0210.00319.37
8.2.70.0180.00717.63
8.2.60.0110.01117.93
8.2.50.0130.01018.07
8.2.40.0180.00618.16
8.2.30.0210.00719.47
8.2.20.0200.00317.96
8.2.10.0170.00717.99
8.2.00.0170.01417.89
8.1.280.0470.02025.92
8.1.270.0320.00323.99
8.1.260.0350.00026.35
8.1.250.0270.01028.09
8.1.240.0530.00723.82
8.1.230.0310.01320.69
8.1.220.0140.01118.77
8.1.210.0120.01618.78
8.1.200.0200.00817.48
8.1.190.0200.00317.54
8.1.180.0180.00618.10
8.1.170.0140.01418.62
8.1.160.0160.00618.91
8.1.150.0130.01018.84
8.1.140.0200.01017.66
8.1.130.0150.01218.02
8.1.120.0130.00917.66
8.1.110.0140.01017.73
8.1.100.0100.01417.73
8.1.90.0160.00917.63
8.1.80.0200.00317.65
8.1.70.0170.00717.64
8.1.60.0160.01017.73
8.1.50.0170.00717.66
8.1.40.0150.01117.65
8.1.30.0160.00917.73
8.1.20.0140.01017.73
8.1.10.0110.01417.64
8.1.00.0180.00717.73
8.0.300.0070.01719.85
8.0.290.0230.00017.18
8.0.280.0190.00618.46
8.0.270.0170.01017.22
8.0.260.0160.00716.82
8.0.250.0240.00017.02
8.0.240.0160.01317.07
8.0.230.0130.01316.94
8.0.220.0140.01116.95
8.0.210.0200.00717.01
8.0.200.0140.01117.00
8.0.190.0230.00317.07
8.0.180.0190.00616.98
8.0.170.0160.01317.02
8.0.160.0230.00316.96
8.0.150.0180.00716.93
8.0.140.0210.00717.00
8.0.130.0240.00313.45
8.0.120.0210.00616.99
8.0.110.0140.01016.95
8.0.100.0210.00716.88
8.0.90.0130.01317.02
8.0.80.0380.05516.92
8.0.70.0190.00316.88
8.0.60.0160.00616.88
8.0.50.0110.01116.92
8.0.30.0990.05717.25
8.0.20.1150.06317.40
8.0.10.0060.01617.14
8.0.00.1150.06016.84
7.4.330.0160.00914.90
7.4.320.0180.00316.48
7.4.300.0140.00716.58
7.4.290.0170.01016.56
7.4.280.0140.01416.54
7.4.270.0120.01216.41
7.4.260.0120.00913.36
7.4.250.0240.00316.45
7.4.240.0240.00316.48
7.4.230.0130.00916.61
7.4.220.0810.08716.50
7.4.210.0530.04316.49
7.4.200.0130.01316.32
7.4.190.0220.00016.63
7.4.160.1000.04716.65
7.4.150.1260.04717.40
7.4.140.1090.05317.86
7.4.130.0980.05716.65
7.4.120.1000.04716.67
7.4.110.0930.07316.73
7.4.100.0900.04516.41
7.4.90.0930.05716.26
7.4.80.0580.05219.39
7.4.70.0660.04216.47
7.4.60.0840.02316.37
7.4.50.0320.00616.68
7.4.40.0420.01122.77
7.4.30.0980.05116.44
7.4.00.0310.03115.19
7.3.330.0180.00313.28
7.3.320.0170.00713.29
7.3.310.0140.01116.37
7.3.300.0130.01016.25
7.3.290.0420.06716.34
7.3.280.0370.05416.24
7.3.270.0990.06217.40
7.3.260.0970.05918.24
7.3.250.1000.03916.50
7.3.240.0920.05016.14
7.3.230.0840.07416.60
7.3.210.1130.06316.58
7.3.200.0530.05619.39
7.3.190.0800.06416.39
7.3.180.0590.05316.26
7.3.170.0700.06716.57
7.3.160.0640.03816.62
7.3.120.0430.02015.00
7.2.330.0930.04516.71
7.2.320.0830.06616.79
7.2.310.0740.02916.46
7.2.300.0760.03216.61
7.2.290.0630.03616.79
7.1.70.0200.00017.29
7.1.60.0270.00717.59
7.1.50.0440.01017.34
7.1.00.0270.03322.26
7.0.200.0400.01716.94
7.0.140.0370.08021.91
7.0.80.0370.07719.95
7.0.70.0400.08719.93
7.0.60.0270.08019.94
7.0.50.0730.07020.24
7.0.40.0500.07720.08
7.0.30.0430.08320.04
7.0.20.0200.08720.14
7.0.10.0370.08320.10
7.0.00.0300.09320.03
5.6.230.0400.08720.68
5.6.220.0370.08720.61
5.6.210.0500.07320.61
5.6.200.0130.09721.02
5.6.190.0270.06021.03
5.6.180.0430.07021.11
5.6.170.0400.07021.06
5.6.160.0200.09321.11
5.6.150.0370.08721.07
5.6.140.0330.09021.07
5.6.130.0370.08321.02
5.6.120.0330.08720.93
5.6.110.0370.08721.01
5.6.100.0370.08020.93
5.6.90.0300.08020.93
5.6.80.0270.08320.33
5.6.70.0470.07020.48
5.6.60.0330.07020.31
5.6.50.0370.08320.44
5.6.40.0330.08320.46
5.6.30.0300.06320.37
5.6.20.0270.06020.46
5.6.10.0370.07320.30
5.6.00.0270.08320.40
5.5.370.0870.06720.46
5.5.360.0500.06720.39
5.5.350.0500.05020.34
5.5.340.0470.08320.89
5.5.330.0770.05720.89
5.5.320.0400.05020.84
5.5.310.0530.05320.93
5.5.300.0600.08020.78
5.5.290.0570.06720.84
5.5.280.0530.07020.93
5.5.270.0370.06720.93
5.5.260.0470.06320.77
5.5.250.0430.06720.61
5.5.240.0800.05320.26
5.5.230.0500.06720.16
5.5.220.0370.05020.23
5.5.210.0470.06020.16
5.5.200.0270.07320.21
5.5.190.0270.06320.15
5.5.180.0400.07320.21
5.5.160.0570.06320.21
5.5.150.0570.05320.14
5.5.140.0270.05720.21
5.5.130.0270.06020.20
5.5.120.0630.05720.22
5.5.110.0370.05720.18
5.5.100.0500.04320.17
5.5.90.0630.06320.03
5.5.80.0370.05720.19
5.5.70.0370.05320.17
5.5.60.0600.06720.00
5.5.50.0430.06020.09
5.5.40.0600.06320.15
5.5.30.0570.05319.99
5.5.20.0400.05320.07
5.5.10.0230.07320.20
5.5.00.0430.06020.09
5.4.450.0630.06719.23
5.4.440.0330.05719.28
5.4.430.0400.06019.44
5.4.420.0500.08019.32
5.4.410.0700.05319.35
5.4.400.0500.06018.95
5.4.390.0670.08019.14
5.4.380.0570.07318.78
5.4.370.0330.06019.16
5.4.360.0370.06318.78
5.4.350.0330.05319.15
5.4.340.0330.05718.91
5.4.320.0570.06319.07
5.4.310.0530.08718.85
5.4.300.0370.05719.01
5.4.290.0300.07019.14
5.4.280.0500.04718.96
5.4.270.0370.06018.95
5.4.260.0700.07319.03
5.4.250.0570.06718.87
5.4.240.0470.07019.00
5.4.230.0430.04319.02
5.4.220.0300.05719.06
5.4.210.0200.07019.14
5.4.200.0630.06719.06
5.4.190.0730.10019.10
5.4.180.0500.07019.11
5.4.170.0530.04718.94
5.4.160.0430.05318.75
5.4.150.0500.06719.13
5.4.140.0270.05716.13
5.4.130.0570.04316.23
5.4.120.0430.05016.28
5.4.110.0400.05016.22
5.4.100.0300.05316.41
5.4.90.0470.06716.28
5.4.80.0570.04016.37
5.4.70.0270.06016.39
5.4.60.0470.04316.43
5.4.50.0470.05316.20
5.4.40.0330.06716.17
5.4.30.0400.04316.28
5.4.20.0700.04716.24
5.4.10.0570.06016.31
5.4.00.0430.05315.70
5.3.290.0470.07014.38
5.3.280.0200.06314.37
5.3.270.0570.07014.36
5.3.260.0330.06014.34
5.3.250.0330.05314.34
5.3.240.0430.04014.25
5.3.230.0370.04714.36
5.3.220.0430.04314.30
5.3.210.0370.06714.29
5.3.200.0430.05314.32
5.3.190.0300.05714.35
5.3.180.0430.05314.41
5.3.170.0470.06014.29
5.3.160.0270.06314.33
5.3.150.0400.04714.25
5.3.140.0400.06714.32
5.3.130.0330.05714.18
5.3.120.0370.05014.32
5.3.110.0270.06314.32
5.3.100.0330.05713.88
5.3.90.0230.05713.66
5.3.80.0570.05713.68
5.3.70.0370.04713.63
5.3.60.0400.05313.70
5.3.50.0400.05713.66
5.3.40.0600.08713.64
5.3.30.0430.06313.66
5.3.20.0430.03713.42
5.3.10.0530.05713.37
5.3.00.0330.05313.27

preferences:
47.59 ms | 401 KiB | 5 Q