3v4l.org

run code in 300+ PHP versions simultaneously
<?php print(date('Y w', strtotime('Monday', strtotime('yesterday')))."\n"); print(date('Y w', strtotime('Monday this week', strtotime('yesterday')))."\n"); print(date('Y w', strtotime('this Monday', strtotime('yesterday')))."\n"); print(date('Y w', strtotime('last Monday', strtotime('yesterday')))."\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.40.0140.00419.01
8.3.30.0030.01218.56
8.3.20.0080.00020.18
8.3.10.0040.00421.94
8.3.00.0040.00423.52
8.2.170.0130.00722.96
8.2.160.0130.00020.38
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00021.00
8.2.120.0030.00526.35
8.2.110.0080.00021.03
8.2.100.0080.00418.03
8.2.90.0000.00919.21
8.2.80.0030.00617.97
8.2.70.0060.00317.72
8.2.60.0000.00918.05
8.2.50.0080.00018.07
8.2.40.0040.00422.46
8.2.30.0040.00419.55
8.2.20.0000.00717.94
8.2.10.0040.00417.95
8.2.00.0030.00617.96
8.1.270.0090.00622.07
8.1.260.0050.00328.09
8.1.250.0020.00528.09
8.1.240.0090.00022.48
8.1.230.0000.01117.64
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0080.00017.35
8.1.180.0000.00818.10
8.1.170.0000.00818.86
8.1.160.0040.00420.87
8.1.150.0070.00018.88
8.1.140.0060.00319.61
8.1.130.0070.00017.77
8.1.120.0000.00817.68
8.1.110.0000.00817.63
8.1.100.0080.00017.55
8.1.90.0040.00417.63
8.1.80.0000.00817.66
8.1.70.0000.00717.72
8.1.60.0040.00417.76
8.1.50.0050.00317.57
8.1.40.0100.00017.55
8.1.30.0040.00417.74
8.1.20.0040.00417.67
8.1.10.0000.00817.65
8.1.00.0080.00017.64
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0000.00718.52
8.0.270.0030.00317.34
8.0.260.0030.00317.39
8.0.250.0040.00317.19
8.0.240.0000.00717.13
8.0.230.0030.00317.03
8.0.220.0000.00717.06
8.0.210.0000.00717.09
8.0.200.0000.00717.06
8.0.190.0040.00417.12
8.0.180.0050.00317.18
8.0.170.0070.00017.15
8.0.160.0030.00316.99
8.0.150.0000.00817.10
8.0.140.0070.00016.91
8.0.130.0000.00613.45
8.0.120.0000.00817.06
8.0.110.0040.00416.96
8.0.100.0000.00817.04
8.0.90.0000.00817.00
8.0.80.0080.01017.08
8.0.70.0000.00717.14
8.0.60.0000.00816.85
8.0.50.0070.00016.82
8.0.30.0080.01217.22
8.0.20.0130.00717.40
8.0.10.0040.00417.22
8.0.00.0070.01016.94
7.4.330.0050.00016.84
7.4.320.0030.00316.66
7.4.300.0030.00616.57
7.4.290.0070.00016.64
7.4.280.0030.00516.67
7.4.270.0030.00316.60
7.4.260.0070.00016.55
7.4.250.0070.00016.63
7.4.240.0030.00316.70
7.4.230.0070.00016.61
7.4.220.0060.01416.63
7.4.210.0090.00616.68
7.4.200.0000.00716.47
7.4.160.0100.01016.45
7.4.150.0030.01417.40
7.4.140.0110.00817.86
7.4.130.0080.00916.68
7.4.120.0120.00616.64
7.4.110.0110.01116.58
7.4.100.0150.00416.64
7.4.90.0090.00916.63
7.4.80.0160.00719.39
7.4.70.0170.00316.75
7.4.60.0110.01116.52
7.4.50.0050.00816.54
7.4.40.0040.01816.49
7.4.30.0130.00516.65
7.4.00.0070.01015.05
7.3.330.0030.00213.09
7.3.320.0030.00313.30
7.3.310.0000.00716.23
7.3.300.0030.00316.28
7.3.290.0070.01216.35
7.3.280.0100.00716.39
7.3.270.0100.01017.40
7.3.260.0080.00816.45
7.3.250.0090.00816.48
7.3.240.0160.00416.49
7.3.230.0060.01216.39
7.3.210.0080.01116.41
7.3.200.0090.00919.39
7.3.190.0060.01216.49
7.3.180.0040.01216.48
7.3.170.0160.00816.52
7.3.160.0070.01016.78
7.2.330.0110.00716.89
7.2.320.0170.00016.68
7.2.310.0110.00816.74
7.2.300.0060.01016.88
7.2.290.0100.00616.80
7.2.60.0060.00916.84
7.2.00.0120.00319.35
7.1.200.0300.00015.34
7.1.100.0040.00818.52
7.1.70.0070.00317.21
7.1.60.0140.01019.28
7.1.50.0030.01417.13
7.1.00.0030.07722.30
7.0.200.0290.00315.04
7.0.80.0470.05319.95
7.0.70.0070.08320.01
7.0.60.0570.07719.98
7.0.50.0500.04720.30
7.0.40.0030.08020.02
7.0.30.0100.04020.18
7.0.20.0000.05020.09
7.0.10.0070.08319.95
7.0.00.0030.04720.07
5.6.280.0030.06721.15
5.6.230.0230.04720.59
5.6.220.0130.07320.63
5.6.210.0070.06020.68
5.6.200.0030.07721.05
5.6.190.0070.04321.07
5.6.180.0130.03721.08
5.6.170.0100.04021.13
5.6.160.0070.07321.11
5.6.150.0030.06321.04
5.6.140.0100.07321.04
5.6.130.0070.08020.95
5.6.120.0100.06721.10
5.6.110.0100.04321.00
5.6.100.0170.07021.04
5.6.90.0130.07021.01
5.6.80.0100.08020.40
5.6.70.0030.04320.38
5.6.60.0030.05320.31
5.6.50.0100.07020.31
5.6.40.0030.07320.36
5.6.30.0030.08320.39
5.6.20.0000.08020.39
5.6.10.0000.07720.36
5.6.00.0070.08020.30
5.5.370.0070.08320.54
5.5.360.0030.06020.50
5.5.350.0100.05020.45
5.5.340.0030.06320.86
5.5.330.0100.07320.92
5.5.320.0070.08020.83
5.5.310.0070.07720.80
5.5.300.0100.03720.82
5.5.290.0170.04020.81
5.5.280.0100.08020.88
5.5.270.0100.07320.63
5.5.260.0100.08720.90
5.5.250.0130.06720.58
5.5.240.0100.06020.21
5.5.230.0130.07020.14
5.5.220.0070.08020.10
5.5.210.0030.05020.13
5.5.200.0170.06320.12
5.5.190.0100.07720.07
5.5.180.0030.05720.27
5.5.160.0030.08020.23
5.5.150.0070.08020.27
5.5.140.0070.08020.12
5.5.130.0100.07720.23
5.5.120.0100.07320.20
5.5.110.0230.05719.96
5.5.100.0070.07720.01
5.5.90.0130.07020.12
5.5.80.0070.07020.09
5.5.70.0200.03720.15
5.5.60.0200.04719.95
5.5.50.0170.03720.05
5.5.40.0100.05720.05
5.5.30.0030.05020.04
5.5.20.0070.03720.04
5.5.10.0070.03719.95
5.5.00.0100.04019.91

preferences:
50.81 ms | 400 KiB | 5 Q