3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = new \DateTime('previous month'); $from = clone $d; $to = clone $d; $from->modify('first day of this month midnight'); $to->modify('last day of this month 23:59:59.999999'); var_dump($from); var_dump($to);

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.0110.00716.63
8.3.50.0040.01116.53
8.3.40.0150.00019.13
8.3.30.0070.00718.91
8.3.20.0030.00620.44
8.3.10.0000.00821.98
8.3.00.0000.00819.50
8.2.180.0100.01018.76
8.2.170.0090.00622.96
8.2.160.0070.00720.65
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0100.00519.41
8.2.120.0000.00926.35
8.2.110.0030.00621.22
8.2.100.0040.00818.15
8.2.90.0070.00319.21
8.2.80.0000.00818.17
8.2.70.0060.00317.88
8.2.60.0030.00618.18
8.2.50.0030.00618.29
8.2.40.0000.00820.85
8.2.30.0030.00620.93
8.2.20.0030.00618.30
8.2.10.0040.00418.29
8.2.00.0040.00418.18
8.1.280.0030.01725.92
8.1.270.0030.00524.04
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0110.00022.32
8.1.230.0000.01219.33
8.1.220.0050.00317.78
8.1.210.0060.00318.77
8.1.200.0060.00317.50
8.1.190.0000.00817.47
8.1.180.0000.00718.10
8.1.170.0060.00319.19
8.1.160.0030.00519.18
8.1.150.0000.00820.87
8.1.140.0020.00519.76
8.1.130.0000.00718.99
8.1.120.0030.00317.81
8.1.110.0040.00417.74
8.1.100.0000.00817.81
8.1.90.0040.00417.61
8.1.80.0070.00017.66
8.1.70.0000.00717.65
8.1.60.0040.00417.88
8.1.50.0030.00517.86
8.1.40.0040.00417.80
8.1.30.0040.00417.94
8.1.20.0050.00218.01
8.1.10.0060.00317.77
8.1.00.0000.00817.79
8.0.300.0050.00318.77
8.0.290.0040.00417.13
8.0.280.0000.00718.65
8.0.270.0000.00717.50
8.0.260.0000.00717.14
8.0.250.0000.00717.25
8.0.240.0030.00417.27
8.0.230.0000.00717.30
8.0.220.0030.00317.19
8.0.210.0030.00317.22
8.0.200.0030.00317.21
8.0.190.0000.00817.28
8.0.180.0040.00417.13
8.0.170.0080.00017.25
8.0.160.0000.01117.14
8.0.150.0000.00817.22
8.0.140.0040.00417.21
8.0.130.0000.00513.63
8.0.120.0050.00217.19
8.0.110.0000.00717.04
8.0.100.0040.00417.00
8.0.90.0080.00017.09
8.0.80.0070.01017.04
8.0.70.0040.00417.20
8.0.60.0000.00817.14
8.0.50.0040.00417.31
8.0.30.0060.01417.34
8.0.20.0100.00817.43
8.0.10.0070.00017.43
8.0.00.0140.00916.86
7.4.330.0000.00715.55
7.4.320.0000.00716.83
7.4.300.0000.00716.82
7.4.290.0000.00816.87
7.4.280.0040.00416.77
7.4.270.0070.00016.89
7.4.260.0040.00416.80
7.4.250.0070.00016.82
7.4.240.0050.00316.83
7.4.230.0030.00317.00
7.4.220.0150.00316.65
7.4.210.0100.01016.79
7.4.200.0040.00416.56
7.4.160.0100.01016.79
7.4.150.0110.00717.40
7.4.140.0130.00817.86
7.4.130.0070.01316.78
7.4.120.0110.00716.70
7.4.110.0120.00616.73
7.4.100.0070.01316.66
7.4.90.0140.00316.80
7.4.80.0140.01419.39
7.4.70.0090.01216.62
7.4.60.0090.00916.74
7.4.50.0080.01116.86
7.4.40.0100.01016.57
7.4.30.0180.00016.54
7.4.00.0060.00315.10
7.3.330.0020.00213.42
7.3.320.0000.00513.45
7.3.310.0030.00316.59
7.3.300.0000.00616.41
7.3.290.0070.00916.49
7.3.280.0070.01016.48
7.3.270.0070.01017.40
7.3.260.0090.00916.63
7.3.250.0130.00716.62
7.3.240.0050.01216.45
7.3.230.0160.00316.88
7.3.210.0110.00716.80
7.3.200.0100.01016.60
7.3.190.0090.00916.77
7.3.180.0080.00816.59
7.3.170.0040.01316.62
7.3.160.0040.01316.70
7.2.330.0120.00616.97
7.2.320.0100.01017.02
7.2.310.0040.01516.66
7.2.300.0110.00717.00
7.2.290.0070.01116.57
7.2.90.1630.00415.19
7.2.80.0060.00617.23
7.2.70.1280.00315.37
7.2.60.1410.00615.33
7.2.50.0070.00717.22
7.2.40.0490.00015.23
7.2.30.0090.00417.26
7.2.20.0100.00517.23
7.2.10.0050.00817.19
7.2.00.0030.00917.12
7.1.210.0180.00215.89
7.1.200.0040.00816.11
7.1.190.0090.00515.81
7.1.180.0100.00513.98
7.1.170.0090.00514.09
7.1.160.0150.00414.14
7.1.150.0120.00015.81
7.1.140.0080.00416.04
7.1.130.0120.00016.02
7.1.120.0120.00313.83
7.1.110.0110.00316.11
7.1.100.0060.00915.91
7.1.90.1270.01115.96
7.1.80.0130.00315.89
7.1.70.0040.01416.06
7.1.60.0230.01233.78
7.1.50.0970.00032.13
7.1.40.0280.00933.78
7.1.30.0300.00333.72
7.1.20.0240.01533.73
7.1.10.0040.01216.04
7.1.00.0560.00314.09
7.0.310.0000.01115.36
7.0.300.0430.00613.80
7.0.290.0080.00815.30
7.0.280.0110.00815.43
7.0.270.0020.01115.24
7.0.260.2680.00915.34
7.0.250.0000.01215.57
7.0.240.0070.00515.69
7.0.230.0110.00815.66
7.0.220.0170.00413.67
7.0.210.0060.00615.68
7.0.200.0080.00815.19
7.0.190.0780.00613.42
7.0.180.0030.01015.56
7.0.170.0060.00615.38
7.0.160.0090.00915.48
7.0.150.0030.01015.29
7.0.140.0710.00313.78
7.0.130.0680.00015.29
7.0.120.0090.00615.43
7.0.110.0080.00515.66
7.0.100.0070.01015.39
7.0.90.0100.00715.66
7.0.80.0150.00615.52
7.0.70.0090.00615.54
7.0.60.0110.00415.52
7.0.50.0110.00615.74
7.0.40.0110.00415.67
7.0.30.0110.00315.58
7.0.20.0050.00815.43
7.0.10.0080.01215.39
7.0.00.0750.01013.85

preferences:
40.3 ms | 400 KiB | 5 Q