3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month = 2; //date("n"); $day = 16; //date("j"); $year = 2014; //date("Y"); if ($day > 15) { $day = 1; } else { if ($month == 1) { $month = 12; $year--; $day = 16; } else { $month--; $day = 16; } } $daysinmonth = date("t", strtotime("$year - $month - $day")); $out = strtotime($year."-".$month."-".$day); //$rangeEnd = date("Y-m-d 23:59:59", strtotime("last month")); //$rangeStart = date("Y-m-d 00:00:00", strtotime($rangeEnd." -6 days")); echo "$year $month $day $daysinmonth $out"; ?>

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.70.0110.00718.56
8.3.60.0100.01016.75
8.3.50.0100.00522.12
8.3.40.0100.01018.96
8.3.30.0090.00619.09
8.3.20.0070.00020.16
8.3.10.0040.00423.36
8.3.00.0080.00019.08
8.2.180.0100.01018.54
8.2.170.0070.01322.96
8.2.160.0080.00520.39
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0080.00020.79
8.2.110.0050.00522.08
8.2.100.0000.01217.84
8.2.90.0000.00817.88
8.2.80.0030.00618.88
8.2.70.0050.00317.75
8.2.60.0080.00017.63
8.2.50.0000.00817.75
8.2.40.0040.00419.48
8.2.30.0040.00418.19
8.2.20.0040.00417.86
8.2.10.0070.00018.20
8.2.00.0080.00017.93
8.1.280.0100.01325.92
8.1.270.0060.00323.99
8.1.260.0060.00326.35
8.1.250.0030.00528.09
8.1.240.0060.00323.92
8.1.230.0040.00718.97
8.1.220.0040.00417.79
8.1.210.0080.00018.77
8.1.200.0080.00017.61
8.1.190.0000.00817.35
8.1.180.0040.00419.26
8.1.170.0040.00419.43
8.1.160.0000.00722.06
8.1.150.0000.00818.73
8.1.140.0000.00717.54
8.1.130.0030.00317.94
8.1.120.0040.00417.54
8.1.110.0000.00817.52
8.1.100.0040.00417.64
8.1.90.0040.00417.57
8.1.80.0050.00217.52
8.1.70.0000.00717.61
8.1.60.0000.00817.63
8.1.50.0000.00817.67
8.1.40.0040.00417.54
8.1.30.0000.00817.79
8.1.20.0040.00417.82
8.1.10.0000.00717.52
8.1.00.0000.00817.64
8.0.300.0040.00418.77
8.0.290.0000.00816.88
8.0.280.0040.00418.63
8.0.270.0030.00317.38
8.0.260.0040.00417.23
8.0.250.0030.00317.01
8.0.240.0030.00617.20
8.0.230.0030.00317.14
8.0.220.0000.00716.99
8.0.210.0070.00017.07
8.0.200.0040.00417.14
8.0.190.0040.00417.15
8.0.180.0030.00517.09
8.0.170.0050.00317.16
8.0.160.0000.00717.16
8.0.150.0040.00417.07
8.0.140.0060.00317.04
8.0.130.0040.00413.45
8.0.120.0040.00416.96
8.0.110.0000.00716.97
8.0.100.0040.00417.08
8.0.90.0050.00216.93
8.0.80.0130.00717.08
8.0.70.0050.00317.15
8.0.60.0080.00016.96
8.0.50.0000.00717.02
8.0.30.0080.01116.98
8.0.20.0080.01017.47
8.0.10.0000.00717.01
8.0.00.0090.01017.04
7.4.330.0030.00315.00
7.4.320.0030.00316.65
7.4.300.0040.00416.64
7.4.290.0000.00716.63
7.4.280.0000.00716.68
7.4.270.0050.00316.72
7.4.260.0060.00316.71
7.4.250.0040.00416.62
7.4.240.0070.00016.72
7.4.230.0030.00316.51
7.4.220.0160.01016.65
7.4.210.0090.00716.56
7.4.200.0000.00716.39
7.4.190.0030.00316.82
7.4.160.0060.00916.54
7.4.150.0060.01817.40
7.4.140.0100.00717.86
7.4.130.0100.00816.61
7.4.120.0120.00716.55
7.4.110.0160.00016.63
7.4.100.0090.01216.72
7.4.90.0130.00316.58
7.4.80.0110.00719.39
7.4.70.0040.01216.84
7.4.60.0070.01016.63
7.4.50.0030.00616.56
7.4.40.0000.01616.62
7.4.30.0090.00816.67
7.4.00.0040.01115.25
7.3.330.0030.00513.37
7.3.320.0030.00313.31
7.3.310.0000.00716.51
7.3.300.0070.00016.48
7.3.290.0160.00316.44
7.3.280.0060.01016.46
7.3.270.0080.00917.40
7.3.260.0030.01716.50
7.3.250.0100.00916.54
7.3.240.0150.00616.68
7.3.230.0060.01016.50
7.3.210.0170.00316.44
7.3.200.0070.01019.39
7.3.190.0070.01016.37
7.3.180.0000.01516.72
7.3.170.0060.00916.69
7.3.160.0090.01216.63
7.3.120.0070.01015.12
7.2.330.0120.00616.96
7.2.320.0080.00816.98
7.2.310.0120.00916.65
7.2.300.0110.00716.89
7.2.290.0070.01416.79
7.2.00.0000.01519.41
7.1.100.0100.00718.24
7.1.70.0000.00717.28
7.1.60.0150.00919.46
7.1.50.0130.00317.10
7.1.00.0030.07022.45
7.0.200.0100.00317.04
7.0.140.0070.07022.08
7.0.80.0270.04019.95
7.0.70.0270.07319.93
7.0.60.0170.04719.96
7.0.50.0200.05720.29
7.0.40.0100.07020.03
7.0.30.0000.05720.02
7.0.20.0030.04720.05
7.0.10.0100.04320.16
7.0.00.0030.04320.09
5.6.280.0070.07021.13
5.6.230.0000.07720.67
5.6.220.0030.04320.61
5.6.210.0100.03320.68
5.6.200.0100.08721.11
5.6.190.0000.04720.96
5.6.180.0070.04021.07
5.6.170.0100.03721.03
5.6.160.0100.03321.04
5.6.150.0100.03320.93
5.6.140.0000.04321.01
5.6.130.0000.04720.95
5.6.120.0100.03721.07
5.6.110.0100.05321.12
5.6.100.0030.04721.07
5.6.90.0030.04720.98
5.6.80.0000.04320.34
5.6.70.0070.03720.26
5.6.60.0070.06320.47
5.6.50.0000.04320.48
5.6.40.0030.04020.40
5.6.30.0070.03020.36
5.6.20.0070.03720.39
5.6.10.0100.03320.53
5.6.00.0030.04320.37
5.5.370.0100.04020.59
5.5.360.0000.04320.39
5.5.350.0130.07320.48
5.5.340.0030.04320.64
5.5.330.0070.04720.91
5.5.320.0030.06720.88
5.5.310.0030.04320.73
5.5.300.0000.04320.88
5.5.290.0000.05320.75
5.5.280.0070.04020.79
5.5.270.0100.07720.86
5.5.260.0030.04320.72
5.5.250.0130.05020.57
5.5.240.0100.03320.30
5.5.230.0000.03720.23
5.5.220.0070.05020.20
5.5.210.0100.03320.28
5.5.200.0100.04020.12
5.5.190.0100.03020.18
5.5.180.0070.06020.23
5.5.160.0000.08020.27
5.5.150.0200.05020.20
5.5.140.0100.05720.21
5.5.130.0100.04320.14
5.5.120.0100.05020.26
5.5.110.0130.05320.27
5.5.100.0070.08019.93
5.5.90.0070.08019.94
5.5.80.0100.08020.14
5.5.70.0130.07020.14
5.5.60.0030.05720.02
5.5.50.0170.02720.05
5.5.40.0030.08020.07
5.5.30.0030.07020.14
5.5.20.0070.07719.95
5.5.10.0070.08320.04
5.5.00.0070.04720.04
5.4.450.0070.04019.43
5.4.440.0070.03319.22
5.4.430.0070.04019.40
5.4.420.0070.06019.41
5.4.410.0070.03319.24
5.4.400.0070.03319.13
5.4.390.0030.03719.12
5.4.380.0000.04019.18
5.4.370.0030.04018.96
5.4.360.0030.04018.96
5.4.350.0000.04019.07
5.4.340.0030.03719.03
5.4.320.0030.04719.03
5.4.310.0070.05019.11
5.4.300.0000.05019.11
5.4.290.0100.04318.92
5.4.280.0070.04718.75
5.4.270.0030.06018.81
5.4.260.0070.06319.02
5.4.250.0170.07019.09
5.4.240.0070.04718.93
5.4.230.0070.06319.08
5.4.220.0070.07319.09
5.4.210.0030.04718.82
5.4.200.0070.07018.89
5.4.190.0030.07018.80
5.4.180.0030.08019.06
5.4.170.0030.08019.09
5.4.160.0070.07019.09
5.4.150.0030.05018.79
5.4.140.0170.03016.32
5.4.130.0100.07016.32
5.4.120.0070.06716.33
5.4.110.0070.07716.36
5.4.100.0130.07016.30
5.4.90.0100.06716.29
5.4.80.0000.04716.38
5.4.70.0100.06716.48
5.4.60.0100.06016.30
5.4.50.0000.07016.35
5.4.40.0030.07716.36
5.4.30.0030.07716.39
5.4.20.0130.06316.22
5.4.10.0070.07716.28
5.4.00.0070.07015.88
5.3.290.0000.04714.67
5.3.280.0000.05714.45
5.3.270.0070.08014.46
5.3.260.0070.07714.59
5.3.250.0070.07014.56
5.3.240.0030.07314.46
5.3.230.0030.06314.58
5.3.220.0100.07014.52
5.3.210.0030.05014.53
5.3.200.0130.06714.57
5.3.190.0000.05714.52
5.3.180.0100.06014.40
5.3.170.0200.07014.55
5.3.160.0000.04714.42
5.3.150.0100.04714.50
5.3.140.0100.07314.56
5.3.130.0170.06714.54
5.3.120.0170.07314.41
5.3.110.0030.08014.55
5.3.100.0100.07014.00
5.3.90.0030.07714.01
5.3.80.0030.08013.92
5.3.70.0100.07013.87
5.3.60.0170.06313.93
5.3.50.0000.07713.80
5.3.40.0070.07713.93
5.3.30.0130.06713.66
5.3.20.0100.07313.56
5.3.10.0130.06713.50
5.3.00.0030.07713.39
5.2.170.0030.06711.14
5.2.160.0070.06011.06
5.2.150.0070.06011.00
5.2.140.0170.05010.95
5.2.130.0030.06311.16
5.2.120.0030.04310.96
5.2.110.0030.06711.05
5.2.100.0030.05710.94
5.2.90.0070.04310.92
5.2.80.0070.06010.95
5.2.70.0100.05011.13
5.2.60.0070.06311.03
5.2.50.0000.06310.86
5.2.40.0130.03010.95
5.2.30.0030.06010.96
5.2.20.0000.04310.94
5.2.10.0030.04010.99
5.2.00.0100.03310.80
5.1.60.0070.0339.82
5.1.50.0070.05310.07
5.1.40.0070.04310.05
5.1.30.0030.05310.19
5.1.20.0000.06010.41
5.1.10.0030.05010.05
5.1.00.0070.05710.14
5.0.50.0030.0478.61
5.0.40.0070.0408.43
5.0.30.0000.0508.30
5.0.20.0030.0378.23
5.0.10.0030.0478.02
5.0.00.0030.0538.17
4.4.90.0030.0307.42
4.4.80.0000.0277.42
4.4.70.0030.0237.42
4.4.60.0030.0337.42
4.4.50.0030.0277.42
4.4.40.0000.0407.42
4.4.30.0030.0337.42
4.4.20.0000.0377.42
4.4.10.0030.0177.42
4.4.00.0000.0507.42
4.3.110.0000.0337.42
4.3.100.0030.0237.42
4.3.90.0000.0337.42
4.3.80.0030.0437.42
4.3.70.0000.0377.42
4.3.60.0000.0207.42
4.3.50.0070.0307.42
4.3.40.0000.0507.42
4.3.30.0030.0337.42
4.3.20.0000.0377.42
4.3.10.0000.0377.42
4.3.00.0000.0377.42

preferences:
60.53 ms | 401 KiB | 5 Q