3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = "Y-m-d";$now = 1267571715; // 2010-03-02 echo date($f, strtotime("last Monday",$now))."\n"; echo date($f, strtotime("last Monday in March",$now))."\n"; echo date($f, strtotime("last Monday of March",$now))."\n"; echo date($f, strtotime("last Monday April",$now))."\n"; echo date($f, strtotime("last Monday in April",$now))."\n"; echo date($f, strtotime("last Monday of April",$now))."\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)
8.3.70.0110.00716.63
8.3.60.0030.01616.50
8.3.50.0100.00921.99
8.3.40.0120.00618.72
8.3.30.0080.00818.84
8.3.20.0040.00420.78
8.3.10.0060.00321.95
8.3.00.0030.00517.71
8.2.190.0080.00816.88
8.2.180.0030.01218.41
8.2.170.0120.00322.96
8.2.160.0100.01022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00017.97
8.2.120.0040.00426.35
8.2.110.0060.00319.29
8.2.100.0040.00818.03
8.2.90.0000.00818.34
8.2.80.0080.00317.97
8.2.70.0000.00818.05
8.2.60.0000.00818.22
8.2.50.0040.00418.10
8.2.40.0040.00420.55
8.2.30.0030.00619.43
8.2.20.0000.00718.09
8.2.10.0000.00718.01
8.2.00.0070.00017.84
8.1.280.0150.00625.92
8.1.270.0050.00320.42
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0060.00322.59
8.1.230.0100.00321.00
8.1.220.0030.00517.74
8.1.210.0060.00318.94
8.1.200.0050.00317.60
8.1.190.0050.00317.46
8.1.180.0030.00618.10
8.1.170.0040.00418.88
8.1.160.0040.00418.98
8.1.150.0040.00420.18
8.1.140.0040.00419.61
8.1.130.0070.00019.06
8.1.120.0040.00417.64
8.1.110.0040.00417.72
8.1.100.0000.00717.70
8.1.90.0050.00217.66
8.1.80.0080.00017.61
8.1.70.0030.00317.73
8.1.60.0000.00817.76
8.1.50.0030.00517.73
8.1.40.0000.00817.75
8.1.30.0060.00317.79
8.1.20.0000.00817.86
8.1.10.0040.00417.59
8.1.00.0050.00317.58
8.0.300.0080.00020.15
8.0.290.0080.00017.00
8.0.280.0000.00718.51
8.0.270.0030.00317.39
8.0.260.0060.00317.31
8.0.250.0030.00317.20
8.0.240.0070.00017.12
8.0.230.0080.00017.20
8.0.220.0000.00716.96
8.0.210.0000.00717.12
8.0.200.0000.00617.10
8.0.190.0040.00417.18
8.0.180.0030.00517.07
8.0.170.0000.00817.23
8.0.160.0070.00017.24
8.0.150.0050.00517.11
8.0.140.0040.00417.11
8.0.130.0000.00513.48
8.0.120.0040.00416.99
8.0.110.0000.00716.97
8.0.100.0030.00517.15
8.0.90.0000.00716.96
8.0.80.0060.00917.14
8.0.70.0080.00016.96
8.0.60.0040.00416.98
8.0.50.0040.00416.96
8.0.30.0110.00717.26
8.0.20.0110.01117.40
8.0.10.0040.00417.12
8.0.00.0070.01016.68
7.4.330.0030.00315.55
7.4.320.0030.00316.73
7.4.300.0060.00016.70
7.4.290.0060.00316.59
7.4.280.0030.00516.71
7.4.270.0040.00416.54
7.4.260.0000.00716.71
7.4.250.0040.00416.57
7.4.240.0070.00016.68
7.4.230.0040.00416.52
7.4.220.0070.01016.77
7.4.210.0070.00816.58
7.4.200.0000.00716.74
7.4.160.0090.00916.59
7.4.150.0110.01417.40
7.4.140.0130.00517.86
7.4.130.0090.00916.70
7.4.120.0110.00816.72
7.4.110.0070.01016.83
7.4.100.0130.00316.69
7.4.90.0040.01416.59
7.4.80.0090.01219.39
7.4.70.0170.00016.77
7.4.60.0060.00916.50
7.4.50.0080.00516.55
7.4.40.0160.00016.67
7.4.30.0110.00516.88
7.4.00.0000.01414.95
7.3.330.0050.00013.10
7.3.320.0050.00013.36
7.3.310.0040.00416.45
7.3.300.0040.00416.43
7.3.290.0040.01016.39
7.3.280.0080.01016.41
7.3.270.0060.00917.40
7.3.260.0090.01316.40
7.3.250.0090.00916.61
7.3.240.0100.00716.57
7.3.230.0060.01116.38
7.3.210.0160.00616.36
7.3.200.0170.00016.86
7.3.190.0100.00716.54
7.3.180.0070.01316.40
7.3.170.0090.00916.62
7.3.160.0130.01016.84
7.2.330.0120.00616.92
7.2.320.0130.00416.41
7.2.310.0070.01016.71
7.2.300.0070.01516.89
7.2.290.0100.00716.83
7.2.60.0170.00816.46
7.1.200.0070.00415.80
7.1.70.0060.00317.41
7.1.60.0070.00717.51
7.1.00.0070.06022.54
7.0.200.0120.00416.91
7.0.140.0030.07722.16
7.0.130.0100.06321.95
7.0.120.0100.05722.11
7.0.110.0000.06722.12
7.0.100.0030.06022.11
7.0.90.0100.07322.02
7.0.80.0030.06022.15
7.0.70.0170.06022.11
7.0.60.0100.06022.08
7.0.50.0130.05722.01
7.0.40.0030.05721.99
7.0.30.0030.06022.15
7.0.20.0100.05322.15
7.0.10.0070.05322.16
7.0.00.0030.05722.11
5.6.290.0170.06020.79
5.6.280.0030.06020.79
5.6.270.0030.06020.93
5.6.260.0130.05320.89
5.6.250.0130.05020.92
5.6.240.0130.05721.13
5.6.230.0130.05321.10
5.6.220.0100.07721.09
5.6.210.0030.06320.89
5.6.200.0170.05321.06
5.6.190.0000.06720.77
5.6.180.0000.06721.08
5.6.170.0100.07320.99
5.6.160.0070.05320.73
5.6.150.0070.06020.88
5.6.140.0070.06720.87
5.6.130.0000.07020.88
5.6.120.0070.07320.77
5.6.110.0100.06720.98
5.6.100.0130.05721.03
5.6.90.0070.06021.06
5.6.80.0230.04320.43
5.6.70.0100.05720.29
5.6.60.0070.06020.18
5.6.50.0100.05320.25
5.6.40.0070.05720.13
5.6.30.0130.06720.22
5.6.20.0100.07020.38
5.6.10.0030.05320.25
5.6.00.0130.04320.34

preferences:
18.77 ms | 401 KiB | 5 Q