3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (function_exists('date_default_timezone_set')) { date_default_timezone_set("Europe/London"); } echo date('d/m/Y', strtotime("-5 month", strtotime("first day of this month"))) ."\n"; echo date('d/m/Y', strtotime("-5 month", strtotime("first day this month"))) ."\n"; echo date('d/m/Y', strtotime("-5 month", strtotime(date('Y-m-01'))) ."\n";

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.310.0200.03719.19
5.4.300.0230.04019.00
5.4.290.0200.04319.30
5.4.280.0230.03319.20
5.4.270.0200.03319.22
5.4.260.0230.04019.00
5.4.250.0230.04019.21
5.4.240.0170.04719.07
5.4.230.0170.03719.16
5.4.220.0200.03719.14
5.4.210.0230.03018.87
5.4.200.0270.03018.99
5.4.190.0270.03719.07
5.4.180.0300.03318.83
5.4.170.0230.03319.15
5.4.160.0030.04319.29
5.4.150.0200.03019.20
5.4.140.0200.04316.39
5.4.130.0200.03316.31
5.4.120.0200.03316.37
5.4.110.0200.03716.45
5.4.100.0230.03716.19
5.4.90.0130.03716.46
5.4.80.0170.03316.55
5.4.70.0170.05716.57
5.4.60.0270.06716.33
5.4.50.0130.04316.54
5.4.40.0170.03716.55
5.4.30.0230.06016.27
5.4.20.0230.04016.52
5.4.10.0130.04316.48
5.4.00.0170.04716.09
5.3.280.0130.04014.54
5.3.270.0170.04314.47
5.3.260.0230.04314.46
5.3.250.0100.04314.46
5.3.240.0200.03714.45
5.3.230.0130.04314.55
5.3.220.0130.02714.44
5.3.210.0070.04314.55
5.3.200.0070.03314.43
5.3.190.1600.04014.47
5.3.180.1570.03714.40
5.3.170.1300.03714.42
5.3.160.0000.04014.41
5.3.150.0030.03714.41
5.3.140.0230.03714.60
5.3.130.0000.04014.41
5.3.120.0030.03714.51
5.3.110.1430.03714.51
5.3.100.1670.03013.98
5.3.90.1630.03313.98
5.3.80.1570.04013.97
5.3.70.1670.03313.82
5.3.60.1500.03314.10
5.3.50.1530.02713.90
5.3.40.1630.03713.91
5.3.30.1670.03013.75
5.3.20.1970.04313.63
5.3.10.1630.03313.50
5.3.00.0200.03713.48

preferences:
141.27 ms | 1386 KiB | 7 Q