3v4l.org

run code in 300+ PHP versions simultaneously
<?php $monday = new DateTime('this week monday'); $sunday = new DateTime('this week sunday'); $monday->setTime(0, 0, 0); $sunday->setTime(23, 59, 59); $nextMonday = clone $monday; $nextMonday->modify('+1 week'); $nextSunday = clone $sunday; $nextSunday->modify('+1 week'); var_dump( array('monday' => $monday->format('Y-m-d H:i:s'), 'sunday' => $sunday->format('Y-m-d H:i:s'), 'monday' => $nextMonday->format('Y-m-d H:i:s'), 'sunday' => $nextSunday->format('Y-m-d H:i:s')) );

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.0140.00418.43
8.3.50.0070.01016.34
8.3.40.0100.00718.66
8.3.30.0120.00318.79
8.3.20.0080.00020.25
8.3.10.0050.00221.98
8.3.00.0040.00419.68
8.2.180.0120.00918.79
8.2.170.0090.00622.96
8.2.160.0150.00019.29
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0090.00017.75
8.2.110.0000.00919.27
8.2.100.0120.00017.88
8.2.90.0080.00019.17
8.2.80.0000.00817.97
8.2.70.0030.00717.63
8.2.60.0030.00518.16
8.2.50.0000.01118.07
8.2.40.0050.00321.11
8.2.30.0000.00718.07
8.2.20.0040.00417.95
8.2.10.0000.00718.23
8.2.00.0000.00718.21
8.1.280.0070.01325.92
8.1.270.0050.00320.20
8.1.260.0040.00426.35
8.1.250.0090.00028.09
8.1.240.0060.00323.97
8.1.230.0070.00417.70
8.1.220.0040.00417.79
8.1.210.0060.00318.77
8.1.200.0030.00617.36
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0040.00418.60
8.1.160.0000.00821.97
8.1.150.0030.00618.96
8.1.140.0080.00017.51
8.1.130.0030.00617.77
8.1.120.0040.00417.70
8.1.110.0000.00717.67
8.1.100.0000.00717.63
8.1.90.0040.00417.61
8.1.80.0040.00417.64
8.1.70.0040.00417.58
8.1.60.0030.00617.79
8.1.50.0060.00317.77
8.1.40.0030.00617.79
8.1.30.0000.01117.73
8.1.20.0050.00217.89
8.1.10.0000.00817.68
8.1.00.0030.00517.67
8.0.300.0080.00018.77
8.0.290.0000.00716.88
8.0.280.0000.00718.43
8.0.270.0050.00317.27
8.0.260.0040.00417.34
8.0.250.0000.00717.20
8.0.240.0000.00717.16
8.0.230.0030.00317.19
8.0.220.0000.00817.01
8.0.210.0050.00317.07
8.0.200.0030.00317.16
8.0.190.0080.00017.04
8.0.180.0030.00517.00
8.0.170.0040.00417.14
8.0.160.0000.00817.03
8.0.150.0040.00417.12
8.0.140.0080.00016.92
8.0.130.0060.00013.44
8.0.120.0040.00417.08
8.0.110.0040.00417.05
8.0.100.0030.00516.97
8.0.90.0040.00417.05
8.0.80.0130.01017.16
8.0.70.0030.00517.03
8.0.60.0080.00016.93
8.0.50.0040.00416.96
8.0.30.0100.00817.11
8.0.20.0140.00517.40
8.0.10.0070.00017.25
8.0.00.0110.00816.92
7.4.330.0000.00615.08
7.4.320.0000.00616.60
7.4.300.0040.00416.73
7.4.290.0030.00316.63
7.4.280.0000.00716.71
7.4.270.0030.00316.73
7.4.260.0030.00316.49
7.4.250.0050.00316.68
7.4.240.0020.00516.70
7.4.230.0040.00416.75
7.4.220.0110.00716.79
7.4.210.0070.00816.70
7.4.200.0070.00016.68
7.4.160.0100.00716.76
7.4.150.0130.01217.40
7.4.140.0110.01117.86
7.4.130.0130.00716.62
7.4.120.0070.01116.72
7.4.110.0120.00616.67
7.4.100.0080.00816.43
7.4.90.0100.00716.60
7.4.80.0130.00319.39
7.4.70.0030.01316.73
7.4.60.0130.00316.74
7.4.50.0030.00716.69
7.4.40.0110.00616.64
7.4.30.0120.00916.57
7.4.00.0060.01015.14
7.3.330.0020.00213.29
7.3.320.0000.00613.35
7.3.310.0000.00716.40
7.3.300.0000.00716.25
7.3.290.0030.00316.51
7.3.280.0050.01416.46
7.3.270.0100.00717.40
7.3.260.0090.00916.57
7.3.250.0080.00916.59
7.3.240.0030.01816.65
7.3.230.0090.00916.61
7.3.210.0040.01316.78
7.3.200.0120.00316.61
7.3.190.0100.00716.65
7.3.180.0100.01316.74
7.3.170.0100.00716.60
7.3.160.0160.00316.65
7.3.120.0120.00515.11
7.3.110.0100.00714.96
7.3.100.0060.00815.03
7.3.90.0030.01014.93
7.3.80.0090.00214.96
7.3.70.0040.00814.78
7.3.60.0040.00815.01
7.3.50.0090.00915.06
7.3.40.0030.00814.99
7.3.30.0070.00615.10
7.3.20.0030.01116.84
7.3.10.0030.01116.82
7.3.00.0030.01016.67
7.2.330.0090.00916.93
7.2.320.0060.01216.80
7.2.310.0000.01916.88
7.2.300.0030.01316.77
7.2.290.0200.00316.68
7.2.250.0070.00715.09
7.2.240.0120.00315.34
7.2.230.0090.00515.07
7.2.220.0050.00815.29
7.2.210.0070.00715.15
7.2.200.0050.00715.31
7.2.190.0060.00715.21
7.2.180.0050.01115.07
7.2.170.0050.00915.22
7.2.160.0030.00915.35
7.2.150.0080.00017.04
7.2.140.0070.00716.82
7.2.130.0030.01016.87
7.2.120.0060.01217.01
7.2.110.0060.00916.74
7.2.100.0070.00417.07
7.2.90.0050.00516.90
7.2.80.0030.00917.12
7.2.70.0100.00717.05
7.2.60.0100.00517.07
7.2.50.0090.00917.08
7.2.40.0120.00317.05
7.2.30.0100.00617.20
7.2.20.0000.01017.13
7.2.10.0060.01017.04
7.2.00.0040.01118.18
7.1.330.0040.01115.98
7.1.320.0010.01115.86
7.1.310.0050.00616.07
7.1.300.0040.01115.91
7.1.290.0030.00915.99
7.1.280.0050.00615.77
7.1.270.0020.00815.93
7.1.260.0040.00915.80
7.1.250.0070.00316.05
7.1.200.0030.00715.69
7.1.100.0160.00618.00
7.1.70.0070.00317.26
7.1.60.0100.01420.03
7.1.50.0250.01834.83
7.1.00.0000.07722.47
7.0.200.0660.00014.85
7.0.60.0170.07719.88
7.0.50.0130.07317.67
7.0.40.0000.08020.23
7.0.30.0400.07020.33
7.0.20.0200.03720.09
7.0.10.0070.04020.19
7.0.00.0000.04320.12
5.6.280.0000.06020.81
5.6.210.0030.04020.50
5.6.200.0100.03718.13
5.6.190.0200.08020.67
5.6.180.3570.04320.77
5.6.170.0370.06720.38
5.6.160.0030.08320.46
5.6.150.0100.07718.22
5.6.140.0100.05018.09
5.6.130.0030.06318.21
5.6.120.0100.08021.02
5.6.110.0000.04320.98
5.6.100.0070.09021.02
5.6.90.0100.08021.02
5.6.80.0100.03720.48
5.6.70.4530.03720.27
5.5.350.0230.06020.29
5.5.340.0070.06317.88
5.5.330.0070.06720.46
5.5.320.3300.05020.29
5.5.310.0170.06020.17
5.5.300.0000.08317.95
5.5.290.0070.04017.88
5.5.280.0030.04320.87
5.5.270.0100.07720.89
5.5.260.0130.07320.76
5.5.250.0000.08720.58
5.5.240.0270.05720.23
5.4.450.0570.07319.41
5.4.440.0670.05319.49
5.4.430.0700.05019.06
5.4.420.0870.05019.54
5.4.410.0670.05019.36
5.4.400.0600.04319.23
5.4.390.0730.04319.15
5.4.380.0670.06019.15
5.4.370.0730.04719.26
5.4.360.0700.05719.09
5.4.350.0630.05719.14
5.4.340.0430.06318.95
5.4.320.0500.05718.80
5.4.310.0730.04719.16
5.4.300.0730.04319.16
5.4.290.0600.05719.00
5.4.280.0600.04319.16
5.4.270.0630.05318.91
5.4.260.0500.05319.27
5.4.250.0570.04319.16
5.4.240.0570.05019.30
5.4.230.0500.05719.21
5.4.220.0600.06019.21
5.4.210.0670.05019.11
5.4.200.0600.05719.25
5.4.190.0900.07019.15
5.4.180.0600.05719.07
5.4.170.0530.05719.18
5.4.160.0570.05018.93
5.4.150.0700.05319.24
5.4.140.0500.05016.39
5.4.130.0100.06716.38
5.4.120.0130.06316.22
5.4.110.0230.05316.41
5.4.100.0630.05316.57
5.4.90.0630.05016.44
5.4.80.0530.04716.52
5.4.70.0030.03716.26
5.4.60.0300.03016.36
5.4.50.0070.07316.38
5.4.40.0170.04716.40
5.4.30.0270.06316.50
5.4.20.0330.03716.41

preferences:
66.29 ms | 400 KiB | 5 Q