3v4l.org

run code in 300+ PHP versions simultaneously
<?php $yearMonth = '2017-06'; $firstDayOfThisMonth = new \DateTime($yearMonth . '-01'); var_dump($firstDayOfThisMonth->format('W')); $lastDayOfThisMonth = clone $firstDayOfThisMonth; $lastDayOfThisMonth = $lastDayOfThisMonth->modify('last day of this month'); var_dump($lastDayOfThisMonth->format('W')); $startDate = new \DateTime($firstDayOfThisMonth->format('Y') . 'W' . $firstDayOfThisMonth->format('W')); $endDate = new \DateTime($lastDayOfThisMonth->format('Y') . 'W' . $lastDayOfThisMonth->format('W')); $endDate->modify('+6 days 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.0070.00716.75
8.3.50.0090.00616.32
8.3.40.0060.01018.80
8.3.30.0110.01118.82
8.3.20.0090.00020.30
8.3.10.0030.00623.53
8.3.00.0070.00721.96
8.2.180.0110.00716.63
8.2.170.0060.00922.96
8.2.160.0100.00619.16
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0080.00021.17
8.2.120.0040.00426.35
8.2.110.0090.00019.14
8.2.100.0070.00317.97
8.2.90.0000.00819.22
8.2.80.0040.00418.16
8.2.70.0100.00017.88
8.2.60.0000.00817.80
8.2.50.0060.00318.10
8.2.40.0030.00620.42
8.2.30.0040.00419.48
8.2.20.0000.01118.13
8.2.10.0040.00418.23
8.2.00.0030.00618.16
8.1.280.0120.00925.92
8.1.270.0070.00022.21
8.1.260.0110.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00622.80
8.1.230.0030.00719.09
8.1.220.0000.00917.90
8.1.210.0060.00318.77
8.1.200.0000.01017.60
8.1.190.0040.00417.36
8.1.180.0000.00818.10
8.1.170.0030.00618.82
8.1.160.0040.00419.11
8.1.150.0000.00820.71
8.1.140.0030.00519.75
8.1.130.0000.00719.07
8.1.120.0040.00417.65
8.1.110.0050.00217.61
8.1.100.0040.00417.71
8.1.90.0030.00517.70
8.1.80.0040.00417.61
8.1.70.0070.00017.71
8.1.60.0000.00817.73
8.1.50.0060.00317.68
8.1.40.0000.00917.60
8.1.30.0030.00617.67
8.1.20.0040.00417.84
8.1.10.0060.00317.80
8.1.00.0030.00517.77
8.0.300.0070.00020.20
8.0.290.0000.00817.00
8.0.280.0040.00418.60
8.0.270.0000.00817.35
8.0.260.0000.00718.49
8.0.250.0000.00717.09
8.0.240.0030.00717.23
8.0.230.0000.00717.19
8.0.220.0000.00717.20
8.0.210.0040.00417.04
8.0.200.0000.00717.20
8.0.190.0040.00417.13
8.0.180.0000.00817.07
8.0.170.0050.00317.24
8.0.160.0030.00517.25
8.0.150.0080.00017.14
8.0.140.0050.00317.15
8.0.130.0000.00513.48
8.0.120.0030.00517.04
8.0.110.0020.00517.08
8.0.100.0050.00217.13
8.0.90.0040.00417.20
8.0.80.0040.01517.21
8.0.70.0040.00417.16
8.0.60.0050.00217.19
8.0.50.0000.00816.99
8.0.30.0110.00917.34
8.0.20.0090.00917.40
8.0.10.0070.00017.10
8.0.00.0070.01016.92
7.4.330.0000.00515.55
7.4.320.0030.00316.70
7.4.300.0030.00316.79
7.4.290.0000.00716.69
7.4.280.0000.00816.75
7.4.270.0000.00716.72
7.4.260.0070.00016.62
7.4.250.0040.00416.68
7.4.240.0000.00716.57
7.4.230.0000.00716.39
7.4.220.0110.00716.68
7.4.210.0040.01116.65
7.4.200.0050.00316.86
7.4.160.0060.01216.63
7.4.150.0120.00617.40
7.4.140.0060.01117.86
7.4.130.0170.00316.70
7.4.120.0110.00816.65
7.4.110.0110.00616.68
7.4.100.0110.01416.78
7.4.90.0100.01016.62
7.4.80.0100.00719.39
7.4.70.0130.00316.56
7.4.60.0070.01016.81
7.4.50.0040.01216.49
7.4.40.0060.01116.62
7.4.30.0130.00716.89
7.4.00.0090.00915.29
7.3.330.0000.00613.29
7.3.320.0060.00013.18
7.3.310.0030.00316.34
7.3.300.0000.00716.42
7.3.290.0080.00816.50
7.3.280.0080.00816.45
7.3.270.0070.01117.40
7.3.260.0100.01216.58
7.3.250.0140.00816.60
7.3.240.0050.01316.61
7.3.230.0100.00716.61
7.3.210.0090.00816.85
7.3.200.0190.00316.69
7.3.190.0000.01616.65
7.3.180.0060.01216.40
7.3.170.0100.00616.49
7.3.160.0030.01416.69
7.2.330.0090.00916.57
7.2.320.0030.01516.95
7.2.310.0100.01016.53
7.2.300.0110.00716.95
7.2.290.0090.00916.66
7.2.60.0090.00016.84
7.2.00.0350.00818.47
7.1.200.0030.00615.66
7.1.100.0110.00018.32
7.1.70.0050.01217.33
7.1.60.0130.01935.24
7.1.50.0270.00634.92
7.1.40.0290.02134.71
7.1.30.0240.02534.61
7.1.20.0230.02034.51
7.1.10.0090.00916.55
7.1.00.0140.00316.86
7.0.200.0080.00917.14
7.0.190.0170.00316.57
7.0.180.0070.01316.39
7.0.170.0100.01316.46
7.0.160.0120.00916.63
7.0.150.0070.01216.32
7.0.140.0070.01016.55
7.0.130.0130.00816.63
7.0.120.0160.00516.47
7.0.110.0100.01016.55
7.0.100.0080.01216.29
7.0.90.0130.00716.44
7.0.80.0070.01116.73
7.0.70.0040.01216.53
7.0.60.0000.01816.29
7.0.50.0080.01116.70
7.0.40.0130.00616.77
7.0.30.0060.01316.82
7.0.20.0150.00616.55
7.0.10.0130.01016.45
7.0.00.0110.01116.45

preferences:
36.26 ms | 400 KiB | 5 Q