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')->modify('sunday this week 23:59:59'); $startDate->modify('monday this week 00:00:00'); 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.0090.00616.38
8.3.50.0100.01016.47
8.3.40.0110.00418.72
8.3.30.0090.00618.98
8.3.20.0040.00420.24
8.3.10.0060.00621.73
8.3.00.0000.00822.09
8.2.180.0100.01018.21
8.2.170.0110.01122.96
8.2.160.0140.00019.05
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00421.07
8.2.120.0040.00426.35
8.2.110.0040.00721.18
8.2.100.0000.01218.16
8.2.90.0040.00419.18
8.2.80.0040.00417.97
8.2.70.0050.00317.88
8.2.60.0040.00417.93
8.2.50.0060.00319.65
8.2.40.0000.00820.62
8.2.30.0000.00919.52
8.2.20.0000.00918.07
8.2.10.0040.00418.13
8.2.00.0040.00418.17
8.1.280.0210.00325.92
8.1.270.0040.00422.19
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00323.92
8.1.230.0000.01119.02
8.1.220.0060.00317.91
8.1.210.0050.00318.77
8.1.200.0080.00017.48
8.1.190.0040.00417.47
8.1.180.0040.00418.10
8.1.170.0030.00618.67
8.1.160.0000.00719.06
8.1.150.0000.00720.69
8.1.140.0000.00819.57
8.1.130.0030.00318.89
8.1.120.0040.00417.68
8.1.110.0040.00417.57
8.1.100.0050.00317.57
8.1.90.0030.00617.55
8.1.80.0030.00317.68
8.1.70.0040.00417.69
8.1.60.0000.00817.73
8.1.50.0030.00517.62
8.1.40.0080.00017.69
8.1.30.0000.00817.79
8.1.20.0060.00317.75
8.1.10.0080.00017.67
8.1.00.0040.00417.79
8.0.300.0050.00218.77
8.0.290.0000.00816.88
8.0.280.0000.00718.59
8.0.270.0000.00717.40
8.0.260.0070.00017.01
8.0.250.0040.00417.20
8.0.240.0050.00517.25
8.0.230.0000.00817.12
8.0.220.0030.00317.10
8.0.210.0050.00317.16
8.0.200.0060.00017.09
8.0.190.0000.00817.12
8.0.180.0070.00017.16
8.0.170.0030.00617.07
8.0.160.0040.00417.19
8.0.150.0000.00717.18
8.0.140.0000.00717.10
8.0.130.0060.00013.52
8.0.120.0030.00616.99
8.0.110.0000.00817.13
8.0.100.0070.00017.16
8.0.90.0050.00517.16
8.0.80.0060.00917.22
8.0.70.0040.00417.20
8.0.60.0000.00717.27
8.0.50.0020.00517.17
8.0.30.0080.00917.17
8.0.20.0110.01117.40
8.0.10.0050.00217.24
8.0.00.0110.00717.03
7.4.330.0020.00215.55
7.4.320.0040.00416.60
7.4.300.0000.00616.70
7.4.290.0000.00716.72
7.4.280.0000.00816.79
7.4.270.0040.00416.60
7.4.260.0030.00316.63
7.4.250.0050.00216.61
7.4.240.0040.00416.67
7.4.230.0020.00516.77
7.4.220.0060.01216.61
7.4.210.0120.00316.84
7.4.200.0050.00216.65
7.4.160.0090.00616.80
7.4.150.0100.00717.40
7.4.140.0070.01117.86
7.4.130.0070.01416.63
7.4.120.0120.01016.75
7.4.110.0070.01016.77
7.4.100.0070.01116.81
7.4.90.0170.00316.66
7.4.80.0160.00319.39
7.4.70.0070.01416.66
7.4.60.0090.00916.60
7.4.50.0100.00616.61
7.4.40.0030.01316.77
7.4.30.0070.01016.56
7.4.00.0110.00615.04
7.3.330.0060.00013.14
7.3.320.0050.00013.07
7.3.310.0000.00716.33
7.3.300.0030.00316.29
7.3.290.0090.00616.43
7.3.280.0080.00716.38
7.3.270.0060.01217.40
7.3.260.0100.01116.57
7.3.250.0120.00616.52
7.3.240.0070.01116.67
7.3.230.0130.00516.57
7.3.210.0080.00816.58
7.3.200.0070.01316.68
7.3.190.0150.00716.46
7.3.180.0140.00716.44
7.3.170.0060.01516.43
7.3.160.0030.01316.59
7.3.120.0100.01015.05
7.3.110.0030.01514.91
7.3.100.0060.01015.21
7.3.90.0060.01314.77
7.3.80.0090.00614.90
7.3.70.0070.00314.94
7.3.60.0080.00815.00
7.3.50.0030.00614.86
7.3.40.0040.01115.14
7.3.30.0100.00314.85
7.3.20.0090.00616.78
7.3.10.0070.00816.59
7.3.00.0120.00616.72
7.2.330.0130.00316.72
7.2.320.0040.01216.86
7.2.310.0080.01616.53
7.2.300.0100.00716.81
7.2.290.0110.00516.95
7.2.250.0000.01715.43
7.2.240.0030.01614.96
7.2.230.0070.01115.26
7.2.220.0030.01515.45
7.2.210.0090.00615.41
7.2.200.0090.00015.26
7.2.190.0000.01715.36
7.2.180.0090.00315.04
7.2.170.0070.00415.20
7.2.130.0100.00816.82
7.2.120.0040.01216.92
7.2.110.0080.00616.88
7.2.100.0120.00616.96
7.2.90.0110.00716.82
7.2.80.0090.00716.91
7.2.70.0050.01217.10
7.2.60.0100.00716.97
7.2.50.0080.00817.09
7.2.40.0100.00916.90
7.2.30.0090.00617.11
7.2.20.0040.01316.95
7.2.10.0080.00817.10
7.2.00.0060.00717.85
7.1.330.0080.00815.86
7.1.320.0060.00616.14
7.1.310.0100.00316.10
7.1.300.0060.00315.85
7.1.290.0000.01415.91
7.1.280.0070.00715.89
7.1.270.0000.01615.83
7.1.260.0030.01015.70
7.1.250.0040.01215.82
7.1.200.0030.00916.05
7.1.100.0000.01318.45
7.1.70.0090.01117.06
7.1.60.0300.01735.25
7.1.50.0350.01334.89
7.1.40.0340.00634.51
7.1.30.0230.01034.71
7.1.20.0230.01234.75
7.1.10.0000.02016.70
7.1.00.0740.01315.26
7.0.200.0070.01016.79
7.0.190.0100.00716.81
7.0.180.0060.01416.13
7.0.170.0090.01116.46
7.0.160.0150.00616.38
7.0.150.0150.00516.26
7.0.140.0070.00916.43
7.0.130.0090.01216.60
7.0.120.0030.01816.63
7.0.110.0090.00916.36
7.0.100.0130.00616.44
7.0.90.0120.00316.30
7.0.80.0030.01316.56
7.0.70.0100.01016.35
7.0.60.0100.01016.04
7.0.50.0050.01016.38
7.0.40.0030.01316.73
7.0.30.0100.00716.52
7.0.20.0110.01416.61
7.0.10.0250.01816.70
7.0.00.0160.00616.43

preferences:
39.6 ms | 401 KiB | 5 Q