3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (class_exists('DateTime')) { $date = new DateTime('2013-10-31') $date->modify('-1 month'); print "2013-10-31, -1 month: {$date->format('m')}"; $date = new DateTime('2013-10-31') $date->modify('first day of 1 month ago'); print "2013-10-31, first day of 1 month ago: {$date->format('m')}"; } else { print 'Not supported.'; }

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)
5.4.210.0140.04112.38
5.4.200.0120.04212.38
5.4.190.0110.04212.37
5.4.180.0100.04312.37
5.4.170.0130.04112.38
5.4.160.0100.04612.38
5.4.150.0090.04612.38
5.4.140.0140.04012.07
5.4.130.0090.04312.05
5.4.120.0110.05012.01
5.4.110.0150.04312.01
5.4.100.0130.04612.01
5.4.90.0140.03912.00
5.4.80.0160.04312.00
5.4.70.0100.04712.00
5.4.60.0200.05112.00
5.4.50.0150.05012.00
5.4.40.0120.04711.99
5.4.30.0120.04611.99
5.4.20.0100.04311.98
5.4.10.0100.04511.99
5.4.00.0120.04911.48
5.3.270.0150.04612.72
5.3.260.0140.04912.72
5.3.250.0120.04712.72
5.3.240.0130.04412.72
5.3.230.0100.04512.71
5.3.220.0090.04812.68
5.3.210.0130.05012.68
5.3.200.0140.05112.68
5.3.190.0140.04712.68
5.3.180.0130.04812.67
5.3.170.0160.04512.67
5.3.160.0140.04212.67
5.3.150.0130.04412.67
5.3.140.0150.04812.66
5.3.130.0120.04512.66
5.3.120.0120.04412.66
5.3.110.0100.04712.66
5.3.100.0160.03812.12
5.3.90.0160.04412.08
5.3.80.0110.04912.07
5.3.70.0150.04312.07
5.3.60.0180.04212.07
5.3.50.0130.04612.00
5.3.40.0160.04912.00
5.3.30.0120.04211.94
5.3.20.0110.04211.72
5.3.10.0120.04111.69
5.3.00.0140.04711.67

preferences:
145.74 ms | 939 KiB | 8 Q