3v4l.org

run code in 300+ PHP versions simultaneously
<?php $yearMonth = '2017-06'; $startDate = new \DateTime($yearMonth . '-01'); $endDate = clone $startDate; $endDate->modify('last day of this month'); $startDate->modify('monday this week 00:00:00'); $endDate->modify('sunday this week 23:59:59'); var_dump($startDate); var_dump($endDate);

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.0040.01116.63
8.3.50.0110.00716.41
8.3.40.0110.00418.68
8.3.30.0110.00418.73
8.3.20.0040.00420.26
8.3.10.0070.00323.51
8.3.00.0060.00322.00
8.2.180.0150.00318.54
8.2.170.0150.00322.96
8.2.160.0040.01119.34
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00421.13
8.2.120.0040.00426.35
8.2.110.0100.00019.50
8.2.100.0040.00717.97
8.2.90.0040.00417.97
8.2.80.0060.00318.22
8.2.70.0060.00317.88
8.2.60.0030.00617.88
8.2.50.0000.00817.75
8.2.40.0050.00320.72
8.2.30.0050.00319.35
8.2.20.0090.00018.10
8.2.10.0040.00418.17
8.2.00.0040.00418.24
8.1.280.0170.00725.92
8.1.270.0040.00422.22
8.1.260.0060.00326.35
8.1.250.0000.00828.09
8.1.240.0040.00422.73
8.1.230.0060.00622.69
8.1.220.0000.00817.91
8.1.210.0040.00418.85
8.1.200.0040.00417.60
8.1.190.0040.00417.48
8.1.180.0030.00918.10
8.1.170.0030.00618.84
8.1.160.0040.00419.13
8.1.150.0000.00920.61
8.1.140.0050.00219.57
8.1.130.0000.00918.96
8.1.120.0030.00317.70
8.1.110.0000.00717.54
8.1.100.0000.00717.69
8.1.90.0030.00517.65
8.1.80.0040.00417.61
8.1.70.0040.00417.57
8.1.60.0080.00017.68
8.1.50.0040.00417.73
8.1.40.0080.00017.63
8.1.30.0040.00417.83
8.1.20.0070.00417.84
8.1.10.0040.00417.82
8.1.00.0000.00717.67
8.0.300.0080.00020.02
8.0.290.0030.00617.00
8.0.280.0000.00718.58
8.0.270.0000.00717.45
8.0.260.0070.00017.01
8.0.250.0000.00817.21
8.0.240.0050.00517.19
8.0.230.0000.00717.27
8.0.220.0050.00217.13
8.0.210.0030.00317.14
8.0.200.0030.00317.29
8.0.190.0000.00917.21
8.0.180.0000.00717.23
8.0.170.0000.00817.14
8.0.160.0070.00017.13
8.0.150.0050.00317.13
8.0.140.0000.00817.05
8.0.130.0050.00013.58
8.0.120.0070.00017.09
8.0.110.0070.00017.18
8.0.100.0000.00817.02
8.0.90.0070.00017.05
8.0.80.0090.00617.04
8.0.70.0030.00517.19
8.0.60.0000.00717.20
8.0.50.0000.00717.21
8.0.30.0080.01017.38
8.0.20.0100.01017.44
8.0.10.0040.00417.24
8.0.00.0060.01116.90
7.4.330.0030.00315.55
7.4.320.0060.00016.61
7.4.300.0000.00716.66
7.4.290.0040.00416.66
7.4.280.0040.00416.65
7.4.270.0000.00716.64
7.4.260.0070.00016.72
7.4.250.0050.00216.63
7.4.240.0030.00616.80
7.4.230.0020.00516.56
7.4.220.0070.01116.84
7.4.210.0120.00316.82
7.4.200.0030.00316.75
7.4.160.0090.00716.66
7.4.150.0110.00717.40
7.4.140.0130.00517.86
7.4.130.0130.00616.71
7.4.120.0090.01116.63
7.4.110.0120.01216.75
7.4.100.0140.00516.75
7.4.90.0100.00716.58
7.4.80.0070.01119.39
7.4.70.0110.00716.61
7.4.60.0070.01016.79
7.4.50.0040.01116.26
7.4.40.0100.00716.71
7.4.30.0090.01416.70
7.4.10.0030.01415.37
7.4.00.0100.00815.31
7.3.330.0060.00013.17
7.3.320.0050.00013.11
7.3.310.0030.00316.33
7.3.300.0000.00716.38
7.3.290.0070.00816.38
7.3.280.0060.01016.40
7.3.270.0130.00517.40
7.3.260.0120.00716.67
7.3.250.0120.00816.56
7.3.240.0120.00816.58
7.3.230.0140.00516.48
7.3.210.0090.01016.61
7.3.200.0040.01416.41
7.3.190.0120.00416.39
7.3.180.0060.01216.57
7.3.170.0190.00316.51
7.3.160.0100.00716.45
7.3.130.0160.00314.93
7.3.120.0060.01214.78
7.3.110.0130.00614.90
7.3.100.0060.01015.03
7.3.90.0100.00315.05
7.3.80.0040.01115.21
7.3.70.0000.00914.66
7.3.60.0030.01214.86
7.3.50.0040.00414.87
7.3.40.0030.00914.66
7.3.30.0000.00914.92
7.3.20.0030.00616.97
7.3.10.0060.00916.99
7.3.00.0090.00616.61
7.2.330.0130.00516.52
7.2.320.0110.00616.49
7.2.310.0060.01316.64
7.2.300.0100.00616.92
7.2.290.0100.00716.88
7.2.260.0060.01215.33
7.2.250.0070.01115.19
7.2.240.0040.01215.20
7.2.230.0090.00615.01
7.2.220.0060.01215.21
7.2.210.0000.01015.43
7.2.200.0030.01315.01
7.2.190.0100.00715.09
7.2.180.0030.01015.28
7.2.170.0070.01014.99
7.2.160.0000.01315.23
7.2.150.0030.01517.04
7.2.140.0090.00617.13
7.2.130.0070.00917.18
7.2.120.0110.00617.13
7.2.110.0000.01416.89
7.2.100.0030.01316.78
7.2.90.0100.00717.27
7.2.80.0070.00716.88
7.2.70.0060.00917.18
7.2.60.0020.01116.77
7.2.50.0040.01117.13
7.2.40.0130.00316.86
7.2.30.0080.00617.16
7.2.20.0080.00617.13
7.2.10.0030.00717.18
7.2.00.0030.01018.24
7.1.330.0030.01016.06
7.1.320.0070.00716.07
7.1.310.0070.00416.09
7.1.300.0070.01015.91
7.1.290.0030.00615.99
7.1.280.0060.00615.96
7.1.270.0060.00615.97
7.1.260.0060.00915.58
7.1.250.0100.00316.17
7.1.240.0000.01616.00
7.1.230.0030.01015.77
7.1.220.0040.01115.93
7.1.210.0090.00915.91
7.1.200.0040.00615.83
7.1.190.0060.00615.89
7.1.180.0030.00615.93
7.1.170.0070.00716.19
7.1.160.0000.01216.11
7.1.150.0050.00516.09
7.1.140.0000.01116.06
7.1.130.0080.00315.74
7.1.120.0030.00716.12
7.1.110.0070.00416.00
7.1.100.0100.00317.23
7.1.90.0110.00016.12
7.1.80.0030.00715.86
7.1.70.0080.00616.73
7.1.60.0120.01225.58
7.1.50.0180.01225.49
7.1.40.0100.01025.29
7.1.30.0140.01025.28
7.1.20.0100.01025.50
7.1.10.0040.00816.51
7.1.00.0050.00916.45
7.0.330.0090.00615.60
7.0.320.0070.00315.71
7.0.310.0080.00415.69
7.0.300.0110.00715.49
7.0.290.0000.01115.52
7.0.280.0090.00315.54
7.0.270.0060.00815.54
7.0.260.0100.00715.57
7.0.250.0050.00515.73
7.0.240.0070.01015.63
7.0.230.0070.01015.43
7.0.220.0060.00315.38
7.0.210.0030.01015.56
7.0.200.0060.01316.26
7.0.190.0050.01116.32
7.0.180.0050.01115.81
7.0.170.0070.00715.91
7.0.160.0080.00616.01
7.0.150.0020.01215.94
7.0.140.0010.01116.16
7.0.130.0000.01416.14
7.0.120.0060.00616.08
7.0.110.0060.00715.91
7.0.100.0060.00916.08
7.0.90.0040.01515.98
7.0.80.0020.01015.91
7.0.70.0020.00915.92
7.0.60.0040.01116.02
7.0.50.0080.00616.08
7.0.40.0080.00415.12
7.0.30.0030.01115.01
7.0.20.0020.01415.22
7.0.10.0070.01015.07
7.0.00.0080.01015.15
5.6.400.0060.00914.72
5.6.390.0120.00614.36
5.6.380.0060.00614.54
5.6.370.0090.00014.30
5.6.360.0070.00714.30
5.6.350.0060.00614.55
5.6.340.0000.00814.50
5.6.330.0080.00314.61
5.6.320.0070.00714.66
5.6.310.0000.01414.61
5.6.300.0030.00714.66
5.6.290.0030.00714.46
5.6.280.0030.01014.56
5.6.270.0080.00814.29
5.6.260.0090.00014.35
5.6.250.0100.00314.52
5.6.240.0040.00814.55
5.6.230.0040.01114.45
5.6.220.0070.00714.39
5.6.210.0080.00814.59
5.6.200.0070.00714.39
5.6.190.0030.00614.49
5.6.180.0060.00914.52
5.6.170.0100.00714.36
5.6.160.0140.00314.45
5.6.150.0100.00614.23
5.6.140.0130.00014.38
5.6.130.0040.00814.51
5.6.120.0080.00814.51
5.6.110.0040.00814.55
5.6.100.0000.01414.38
5.6.90.0120.00414.61
5.6.80.0040.00914.29
5.6.70.0100.01014.21
5.6.60.0100.00714.49
5.6.50.0000.01914.34
5.6.40.0030.00614.70
5.6.30.0040.00714.11
5.6.20.0030.00914.31
5.6.10.0030.01014.38
5.6.00.0040.00814.32

preferences:
39.87 ms | 401 KiB | 5 Q