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.0100.01018.43
8.3.50.0130.00522.00
8.3.40.0170.00318.80
8.3.30.0030.01019.04
8.3.20.0000.00720.29
8.3.10.0080.00021.92
8.3.00.0030.00622.58
8.2.180.0130.00616.63
8.2.170.0090.00622.96
8.2.160.0070.00721.06
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0110.00326.16
8.2.120.0090.00019.36
8.2.110.0090.00021.00
8.2.100.0040.00718.22
8.2.90.0050.00319.17
8.2.80.0030.00517.97
8.2.70.0000.00817.75
8.2.60.0060.00317.93
8.2.50.0030.00618.22
8.2.40.0040.00420.60
8.2.30.0050.00319.32
8.2.20.0080.00017.68
8.2.10.0040.00417.77
8.2.00.0040.00417.89
8.1.280.0070.01425.92
8.1.270.0030.00522.09
8.1.260.0080.00026.35
8.1.250.0040.01128.09
8.1.240.0030.00723.92
8.1.230.0070.00320.34
8.1.220.0000.00817.88
8.1.210.0090.00018.77
8.1.200.0100.00017.48
8.1.190.0090.00017.34
8.1.180.0040.00418.10
8.1.170.0080.00018.69
8.1.160.0000.00718.93
8.1.150.0040.00420.20
8.1.140.0040.00417.71
8.1.130.0080.00017.85
8.1.120.0050.00317.59
8.1.110.0050.00217.58
8.1.100.0040.00317.60
8.1.90.0050.00217.57
8.1.80.0050.00317.64
8.1.70.0000.00717.62
8.1.60.0040.00417.69
8.1.50.0000.00717.62
8.1.40.0040.00417.62
8.1.30.0050.00317.67
8.1.20.0040.00417.72
8.1.10.0040.00417.57
8.1.00.0000.01017.64
8.0.300.0000.00818.77
8.0.290.0000.00716.88
8.0.280.0070.00018.54
8.0.270.0040.00417.34
8.0.260.0030.00317.03
8.0.250.0000.00717.10
8.0.240.0080.00017.07
8.0.230.0000.00716.98
8.0.220.0070.00017.05
8.0.210.0000.00716.90
8.0.200.0000.00617.04
8.0.190.0030.00617.11
8.0.180.0000.00717.05
8.0.170.0070.00017.08
8.0.160.0040.00416.91
8.0.150.0050.00317.04
8.0.140.0020.00517.04
8.0.130.0030.00613.32
8.0.120.0080.00017.05
8.0.110.0000.00817.02
8.0.100.0040.00416.83
8.0.90.0070.00016.85
8.0.80.0180.00317.11
8.0.70.0050.00317.08
8.0.60.0080.00017.00
8.0.50.0040.00416.91
8.0.30.0110.00917.38
8.0.20.0030.01517.40
8.0.10.0000.00817.29
8.0.00.0050.01316.99
7.4.330.0050.00015.14
7.4.320.0000.00616.70
7.4.300.0060.00016.45
7.4.290.0040.00416.64
7.4.280.0040.00716.59
7.4.270.0070.00416.66
7.4.260.0080.00316.57
7.4.250.0000.00816.57
7.4.240.0020.00616.59
7.4.230.0040.00416.71
7.4.220.0100.00716.65
7.4.210.0030.01216.63
7.4.200.0000.00716.72
7.4.190.0050.00216.56
7.4.160.0110.01116.67
7.4.150.0160.00317.40
7.4.140.0110.00817.86
7.4.130.0140.00416.58
7.4.120.0070.01216.62
7.4.110.0070.01016.87
7.4.100.0130.00716.55
7.4.90.0180.00616.77
7.4.80.0100.01019.39
7.4.70.0110.01116.83
7.4.60.0130.00316.52
7.4.50.0000.00916.70
7.4.40.0070.00722.77
7.4.30.0120.01216.77
7.4.00.0170.00015.23
7.3.330.0030.00213.14
7.3.320.0000.00513.35
7.3.310.0070.00016.22
7.3.300.0030.00316.34
7.3.290.0100.01316.32
7.3.280.0080.00616.40
7.3.270.0100.00717.40
7.3.260.0130.00316.34
7.3.250.0070.01316.60
7.3.240.0170.00016.54
7.3.230.0170.00016.50
7.3.210.0110.00616.75
7.3.200.0110.00919.39
7.3.190.0090.00916.54
7.3.180.0120.00316.41
7.3.170.0160.00316.50
7.3.160.0130.00316.38
7.3.120.0090.00614.80
7.2.330.0110.00916.70
7.2.320.0100.00716.83
7.2.310.0100.00616.63
7.2.300.0060.01016.66
7.2.290.0000.01716.60
7.2.110.0210.00416.47
7.2.100.0130.00016.20
7.2.90.0060.01116.26
7.2.80.0140.00716.42
7.2.70.0090.01116.48
7.2.60.0030.01016.88
7.2.50.0040.01116.93
7.2.40.0120.00616.84
7.2.30.0070.01016.90
7.2.20.0120.00616.98
7.2.10.0030.00817.14
7.2.00.0060.00618.38
7.1.230.0140.00315.34
7.1.220.0030.01015.65
7.1.210.0170.00615.68
7.1.200.0030.01616.00
7.1.190.0080.00815.34
7.1.180.0090.00615.94
7.1.170.0100.00615.64
7.1.160.0120.00915.96
7.1.150.0120.00615.91
7.1.140.0090.00615.96
7.1.130.0140.00715.72
7.1.120.0110.00615.56
7.1.110.0090.00615.85
7.1.100.0030.00917.27
7.1.90.0090.00615.88
7.1.80.0030.01516.01
7.1.70.0110.00516.61
7.1.60.0100.01517.99
7.1.50.0090.00716.57
7.1.40.1000.00716.12
7.1.30.0000.01815.98
7.1.20.0130.00315.79
7.1.10.0220.00315.55
7.1.00.0120.04318.93
7.0.310.0130.00815.50
7.0.300.0060.00615.44
7.0.290.0030.00915.15
7.0.280.0090.00315.57
7.0.270.0090.00315.57
7.0.260.0060.00615.63
7.0.250.0090.00315.52
7.0.240.0130.00315.54
7.0.230.0090.00615.69
7.0.220.0120.00615.54
7.0.210.0100.00315.46
7.0.200.0100.00516.21
7.0.190.0100.00315.75
7.0.180.0100.00615.43
7.0.170.0100.00315.45
7.0.160.0120.00315.63
7.0.150.0190.00815.34
7.0.140.0110.04018.51
7.0.130.0120.01215.23
7.0.120.0220.00515.35
7.0.110.0170.00915.02
7.0.100.0100.01415.24
7.0.90.0190.00315.29
7.0.80.0160.04317.57
7.0.70.0200.03717.48
7.0.60.0110.02117.76
7.0.50.0140.01618.08
7.0.40.0080.02016.78
7.0.30.0100.04016.77
7.0.20.0100.01816.79
7.0.10.0020.03216.75
7.0.00.0080.02816.70
5.6.380.0030.01214.30
5.6.370.0030.01314.00
5.6.360.0030.00914.63
5.6.350.0060.00314.37
5.6.340.0030.00914.25
5.6.330.0030.00914.30
5.6.320.0110.00014.50
5.6.310.0060.00914.50
5.6.300.0160.00613.93
5.6.290.0130.00913.85
5.6.280.0060.01514.09
5.6.270.0110.01114.15
5.6.260.0090.01214.32
5.6.250.0100.00714.07
5.6.240.0080.00814.20
5.6.230.0050.02417.52
5.6.220.0070.03117.48
5.6.210.0060.03517.46
5.6.200.0050.02317.58
5.6.190.0040.02417.72
5.6.180.0050.02217.59
5.6.170.0070.02017.76
5.6.160.0080.02517.66
5.6.150.0080.03217.54
5.6.140.0030.04517.62
5.6.130.0050.04517.61
5.6.120.0090.02117.58
5.6.110.0060.02617.48
5.6.100.0030.02817.72
5.6.90.0030.03017.49
5.6.80.0100.02017.20
5.6.70.0020.02817.29
5.6.60.0050.02017.27
5.6.50.0050.02017.30
5.6.40.0030.02417.28
5.6.30.0070.02017.25
5.6.20.0030.02617.34
5.6.10.0080.02017.33
5.6.00.0080.02017.26
5.5.380.0100.00310.91
5.5.370.0050.04515.79
5.5.360.0070.02815.81
5.5.350.0080.02815.82
5.5.340.0070.02115.96
5.5.330.0070.03316.03
5.5.320.0070.01816.01
5.5.310.0050.02215.92
5.5.300.0060.04115.85
5.5.290.0070.02315.92
5.5.280.0090.02215.90
5.5.270.0060.02415.95
5.5.260.0030.02615.97
5.5.250.0050.02615.72
5.5.240.0070.02015.58
5.5.230.0000.02415.55
5.5.220.0080.01915.59
5.5.210.0060.02015.58
5.5.200.0060.01815.68
5.5.190.0060.01815.66
5.5.180.0050.03315.74
5.5.170.0060.00614.08
5.5.160.0060.02215.54
5.5.150.0080.02315.70
5.5.140.0050.02015.50
5.5.130.0060.02215.54
5.5.120.0030.02015.68
5.5.110.0040.02415.63
5.5.100.0020.02615.57
5.5.90.0030.02515.29
5.5.80.0080.01615.51
5.5.70.0000.02315.51
5.5.60.0050.02015.37
5.5.50.0050.02215.55
5.5.40.0050.01815.58
5.5.30.0050.02215.57
5.5.20.0050.01815.41
5.5.10.0080.01615.56
5.5.00.0050.01615.27
5.4.450.0080.04115.07
5.4.440.0020.02415.10
5.4.430.0060.01915.12
5.4.420.0090.02015.09
5.4.410.0040.02415.08
5.4.400.0040.02014.82
5.4.390.0050.02215.06
5.4.380.0040.02315.04
5.4.370.0030.01714.80
5.4.360.0030.02314.84
5.4.350.0000.02014.97
5.4.340.0030.02614.93
5.4.330.0040.00810.89
5.4.320.0050.01915.14
5.4.310.0050.02114.97
5.4.300.0070.02214.96
5.4.290.0080.02015.11
5.4.280.0040.02114.87
5.4.270.0100.01314.99
5.4.260.0050.02314.99
5.4.250.0000.02114.89
5.4.240.0030.01814.78
5.4.230.0030.01814.96
5.4.220.0080.01914.96
5.4.210.0030.01914.82
5.4.200.0040.02414.92
5.4.190.0040.01814.93
5.4.180.0070.02015.00
5.4.170.0050.01714.86
5.4.160.0000.01914.83
5.4.150.0130.02015.01
5.4.140.0010.02513.77
5.4.130.0050.01613.68
5.4.120.0040.01913.65
5.4.110.0020.02113.77
5.4.100.0100.01713.57
5.4.90.0040.01613.58
5.4.80.0050.02313.69
5.4.70.0090.01313.70
5.4.60.0030.01913.64
5.4.50.0050.02013.66
5.4.40.0080.03313.63
5.4.30.0010.02013.53
5.4.20.0050.03213.61
5.4.10.0050.03313.49
5.4.00.0100.02713.20
5.3.290.0050.02312.63
5.3.280.0020.02312.43
5.3.270.0060.01612.70
5.3.260.0030.02312.66
5.3.250.0030.02012.60
5.3.240.0040.01812.60
5.3.230.0040.01912.56
5.3.220.0070.01512.43
5.3.210.0050.01812.45
5.3.200.0020.02012.39
5.3.190.0010.02112.47
5.3.180.0050.01712.54
5.3.170.0050.02212.50
5.3.160.0010.02412.50
5.3.150.0070.01912.56
5.3.140.0030.02412.45
5.3.130.0070.01712.57
5.3.120.0040.04312.43
5.3.110.0060.03312.54
5.3.100.0090.02812.16
5.3.90.0030.03512.25
5.3.80.0080.02512.17
5.3.70.0010.02112.03
5.3.60.0050.01712.13
5.3.50.0040.01712.05
5.3.40.0030.02712.12
5.3.30.0030.04312.14
5.3.20.0050.03811.91
5.3.10.0030.01911.77
5.3.00.0020.02111.91
5.2.170.0050.02710.33
5.2.160.0020.02810.32
5.2.150.0020.01710.17
5.2.140.0030.03110.32
5.2.130.0050.02810.16
5.2.120.0030.03210.35
5.2.110.0030.01610.18
5.2.100.0030.01610.25
5.2.90.0020.01510.27
5.2.80.0030.03010.15
5.2.70.0030.01810.21
5.2.60.0010.02410.22
5.2.50.0010.01710.14
5.2.40.0010.01810.13
5.2.30.0020.02110.15
5.2.20.0050.02010.09
5.2.10.0030.01810.13
5.2.00.0030.01610.04
5.1.60.0060.0099.36
5.1.50.0030.0159.36
5.1.40.0040.0169.37
5.1.30.0070.0139.57
5.1.20.0040.0219.50
5.1.10.0030.0209.40
5.1.00.0060.0109.44
5.0.50.0050.0108.64
5.0.40.0000.0138.59
5.0.30.0020.0268.52
5.0.20.0070.0108.50
5.0.10.0040.0158.49
5.0.00.0010.0238.49
4.4.90.0020.0178.04
4.4.80.0020.0108.04
4.4.70.0020.0128.04
4.4.60.0010.0208.04
4.4.50.0030.0138.04
4.4.40.0000.0238.04
4.4.30.0020.0168.04
4.4.20.0020.0178.04
4.4.10.0040.0138.04
4.4.00.0010.0158.04
4.3.110.0030.0188.04
4.3.100.0020.0188.04
4.3.90.0020.0188.04
4.3.80.0030.0128.04
4.3.70.0000.0128.04
4.3.60.0020.0178.04
4.3.50.0020.0178.04
4.3.40.0000.0188.04
4.3.30.0020.0078.04
4.3.20.0030.0088.04
4.3.10.0020.0128.04
4.3.00.0020.0078.04

preferences:
54.49 ms | 401 KiB | 5 Q