3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first = clone $last = new \DateTime(date('d-m-Y',time())); //this being todays date 21-03-2017 $first->modify('first day of this month'); var_dump($first); $last->modify('last day of this month'); var_dump($last);

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)
7.3.120.0110.00415.18
7.3.110.0040.01115.26
7.3.100.0030.01314.71
7.3.90.0030.01015.02
7.3.80.0000.01415.16
7.3.70.0060.00914.98
7.3.60.0060.00915.20
7.3.50.0000.01814.99
7.3.40.0070.01015.04
7.3.30.0160.00014.91
7.3.20.0030.01316.87
7.3.10.0040.01116.78
7.3.00.0060.01016.73
7.2.240.0070.01014.74
7.2.230.0090.00615.27
7.2.220.0030.01315.27
7.2.210.0060.00915.02
7.2.200.0090.00615.08
7.2.190.0060.00914.99
7.2.180.0080.00315.32
7.2.170.0070.01115.30
7.2.160.0060.01215.34
7.2.150.0000.01617.04
7.2.140.0120.00417.12
7.2.130.0050.01017.03
7.2.120.0090.00517.09
7.2.110.0050.01017.00
7.2.100.0090.00417.03
7.2.90.0100.00817.00
7.2.80.0070.01116.89
7.2.70.0090.01017.06
7.2.60.0080.00817.01
7.2.50.0080.01017.18
7.2.40.0100.00316.96
7.2.30.0000.01516.88
7.2.20.0070.01017.00
7.2.10.0090.00617.11
7.2.00.0060.00917.01
7.1.330.0070.00715.97
7.1.320.0090.00015.85
7.1.310.0040.01116.05
7.1.300.0060.00315.91
7.1.290.0030.01115.79
7.1.280.0000.01315.86
7.1.270.0070.01015.50
7.1.260.0030.00916.04
7.1.250.0060.00715.87
7.1.200.0030.00615.97
7.1.70.0050.00217.31
7.1.60.0060.00617.49
7.1.30.0970.05336.51
7.1.20.1230.06736.54
7.1.10.0700.06320.27
7.1.00.0870.07320.58
7.0.200.0000.00916.78
7.0.170.0730.06720.05
7.0.160.0830.05319.98
7.0.150.0630.06320.18
7.0.140.2400.06020.08
7.0.130.0970.05720.21
7.0.120.1000.06320.07
7.0.110.0970.07720.09
7.0.100.0830.06320.13
7.0.90.1100.06720.12
7.0.80.0930.07020.05
7.0.70.0600.05720.13
7.0.60.0630.06319.81
7.0.50.0770.06320.09
7.0.40.0630.05319.96
7.0.30.0500.06720.13
7.0.20.0800.06020.02
7.0.10.0700.06020.13
7.0.00.0800.07720.08

preferences:
26.12 ms | 401 KiB | 5 Q