3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lastmonday = strtotime('last monday of this month'); $lmonday = date('Y-m-d',$lastmonday); $firstday = strtotime('first day of this month'); $fday = date('Y-m-d',$firstday); $d1 = new DateTime($lmonday); $dd1 = $d1->format('Y-m-d'); // $d2 = new DateTime($fday); echo $dd2 = $d2->format('Y-m-d'); // $period_serv = $dd1->diff($dd2); // $theperiod = $period_serv->format('%a'); //echo $theperiod;

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.0000.01516.88
8.3.60.0120.00918.43
8.3.50.0160.00521.21
8.3.40.0090.00619.07
8.3.30.0180.00418.82
8.3.20.0000.01420.34
8.3.10.0040.00421.78
8.3.00.0120.00317.99
8.2.180.0100.01318.92
8.2.170.0110.00422.96
8.2.160.0000.01720.45
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0060.00317.88
8.2.110.0060.00320.24
8.2.100.0060.00619.48
8.2.90.0040.00419.27
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0040.00419.41
8.2.30.0050.00319.89
8.2.20.0050.00317.85
8.2.10.0040.00418.19
8.2.00.0070.00018.14
8.1.280.0110.00425.92
8.1.270.0100.00320.37
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00317.70
8.1.230.0040.00817.60
8.1.220.0050.00317.78
8.1.210.0030.00518.77
8.1.200.0030.00617.47
8.1.190.0050.00317.25
8.1.180.0060.00318.10
8.1.170.0040.00418.59
8.1.160.0000.00822.01
8.1.150.0000.00719.06
8.1.140.0090.00017.65
8.1.130.0030.00317.73
8.1.120.0000.00717.68
8.1.110.0080.00017.70
8.1.100.0030.00417.67
8.1.90.0000.00717.69
8.1.80.0060.00317.66
8.1.70.0040.00417.65
8.1.60.0030.00517.74
8.1.50.0030.00517.72
8.1.40.0080.00017.71
8.1.30.0080.00017.80
8.1.20.0080.00017.93
8.1.10.0040.00417.82
8.1.00.0040.00417.77
8.0.300.0080.00018.77
8.0.290.0000.00817.00
8.0.280.0070.00018.45
8.0.270.0000.00717.19
8.0.260.0040.00417.33
8.0.250.0000.00817.19
8.0.240.0030.00317.22
8.0.230.0030.00317.21
8.0.220.0000.00717.00
8.0.210.0080.00017.13
8.0.200.0050.00317.22
8.0.190.0030.00617.18
8.0.180.0000.00817.21
8.0.170.0000.00917.19
8.0.160.0000.00717.02
8.0.150.0070.00017.20
8.0.140.0040.00417.04
8.0.130.0050.00213.56
8.0.120.0050.00517.14
8.0.110.0000.00717.08
8.0.100.0030.00517.18
8.0.90.0040.00417.15
8.0.80.0090.00617.14
8.0.70.0040.00416.98
8.0.60.0040.00417.03
8.0.50.0070.00017.09
8.0.30.0100.00817.31
8.0.20.0090.01117.47
8.0.10.0020.00517.25
8.0.00.0110.01217.02
7.4.330.0000.00515.11
7.4.320.0030.00316.63
7.4.300.0030.00316.71
7.4.290.0000.00716.70
7.4.280.0080.00016.78
7.4.270.0030.00316.79
7.4.260.0000.00716.79
7.4.250.0050.00316.57
7.4.240.0020.00516.73
7.4.230.0000.00716.58
7.4.220.0110.00616.70
7.4.210.0110.00416.82
7.4.200.0030.00316.55
7.4.160.0070.00716.75
7.4.150.0100.01017.40
7.4.140.0080.01017.86
7.4.130.0110.00816.75
7.4.120.0100.01116.82
7.4.110.0120.00616.97
7.4.100.0030.01916.75
7.4.90.0070.01016.73
7.4.80.0130.00319.39
7.4.70.0080.00816.71
7.4.60.0070.01016.89
7.4.50.0040.00416.67
7.4.40.0100.00616.88
7.4.30.0160.00616.68
7.4.00.0070.01015.27
7.3.330.0030.00313.34
7.3.320.0030.00313.29
7.3.310.0030.00516.30
7.3.300.0030.00316.48
7.3.290.0090.00716.44
7.3.280.0080.00916.41
7.3.270.0180.00017.40
7.3.260.0160.00616.52
7.3.250.0120.00516.51
7.3.240.0090.01216.47
7.3.230.0170.00016.61
7.3.210.0060.01016.52
7.3.200.0110.00616.51
7.3.190.0150.00616.70
7.3.180.0030.01416.75
7.3.170.0120.00416.59
7.3.160.0160.00016.51
7.2.330.0030.01616.60
7.2.320.0030.01316.61
7.2.310.0080.01216.48
7.2.300.0090.00616.96
7.2.290.0050.01116.99
7.2.60.0030.01017.09
7.2.00.0040.01119.68
7.1.200.0180.00616.06
7.1.100.0060.00618.27
7.1.70.0040.00417.43
7.1.60.0070.00719.27
7.1.50.0130.01017.20
7.1.00.0000.08022.50
7.0.200.0060.00316.80
7.0.90.0100.04019.97
7.0.80.0070.08719.90
7.0.70.0130.07319.88
7.0.60.0130.08020.06
7.0.50.0070.09020.20
7.0.40.0070.07720.04
7.0.30.0070.08320.13
7.0.20.0170.07020.00
7.0.10.0100.07320.09
7.0.00.0070.08320.06
5.6.280.0130.06020.92
5.6.240.0100.07020.69
5.6.230.0030.05020.68
5.6.220.0130.05020.68
5.6.210.0030.08020.62
5.6.200.0030.09021.04
5.6.190.0200.07721.00
5.6.180.0030.08321.01
5.6.170.0030.07021.07
5.6.160.0070.08020.96
5.6.150.0070.07321.13
5.6.140.0070.08320.93
5.6.130.0030.08321.11
5.6.120.0130.08321.01
5.6.110.0100.04720.99
5.6.100.0130.06321.00
5.6.90.0100.05321.02
5.6.80.0000.05720.40
5.6.70.0030.06020.39
5.6.60.0100.07320.54
5.6.50.0030.04320.35
5.6.40.0170.03320.38
5.6.30.0030.07720.42
5.6.20.0070.07320.41
5.6.10.0170.08020.46
5.6.00.0070.07320.41
5.5.380.0030.08020.51
5.5.370.0070.07720.57
5.5.360.0070.08720.41
5.5.350.0100.07720.34
5.5.340.0030.08720.73
5.5.330.0170.08320.75
5.5.320.0070.07020.83
5.5.310.0000.04720.77
5.5.300.0200.06720.88
5.5.290.0070.07720.79
5.5.280.0100.08020.88
5.5.270.0230.06020.89
5.5.260.0130.07020.91
5.5.250.0070.07320.57
5.5.240.0100.05320.28
5.5.230.0070.08020.02
5.5.220.0030.07720.25
5.5.210.0070.04020.17
5.5.200.0130.07320.18
5.5.190.0030.08319.96
5.5.180.0070.07720.18
5.5.160.0000.05020.22
5.5.150.0070.07719.97
5.5.140.0170.07020.24
5.5.130.0100.05020.11
5.5.120.0130.07320.10
5.5.110.0000.07020.07
5.5.100.0070.08320.07
5.5.90.0130.07720.15
5.5.80.0100.07720.14
5.5.70.0030.07720.07
5.5.60.0030.08720.15
5.5.50.0000.07320.09
5.5.40.0100.06319.95
5.5.30.0130.07720.03
5.5.20.0170.07320.13
5.5.10.0070.08020.10
5.5.00.0070.07319.99
5.4.450.0100.03719.30
5.4.440.0030.07719.22
5.4.430.0170.06319.56
5.4.420.0130.07319.39
5.4.410.0030.07319.23
5.4.400.0030.07019.15
5.4.390.0130.07318.81
5.4.380.0030.07719.12
5.4.370.0100.04319.14
5.4.360.0030.04719.11
5.4.350.0070.04318.84
5.4.340.0100.08018.96
5.4.320.0000.08319.05
5.4.310.0070.07319.13
5.4.300.0170.06019.12
5.4.290.0100.05718.94
5.4.280.0070.07719.03
5.4.270.0070.07719.09
5.4.260.0030.07718.96
5.4.250.0030.08019.07
5.4.240.0030.08319.12
5.4.230.0100.08319.14
5.4.220.0070.04319.22
5.4.210.0100.07719.11
5.4.200.0000.08319.23
5.4.190.0100.07318.80
5.4.180.0070.04718.96
5.4.170.0000.09019.13
5.4.160.0030.04319.12
5.4.150.0030.08019.12
5.4.140.0070.07316.39
5.4.130.0070.07016.38
5.4.120.0000.05716.32
5.4.110.0030.07316.29
5.4.100.0070.07016.43
5.4.90.0030.07716.46
5.4.80.0070.07316.42
5.4.70.0000.08016.47
5.4.60.0130.06316.40
5.4.50.0000.08016.38
5.4.40.0100.06016.41
5.4.30.0070.06716.29
5.4.20.0030.07316.31
5.4.10.0030.04716.39
5.4.00.0130.06715.50

preferences:
55.83 ms | 401 KiB | 5 Q