3v4l.org

run code in 300+ PHP versions simultaneously
<?php print(date('Y w', strtotime('Monday'))."\n"); print(date('Y w', strtotime('Monday this week'))."\n"); print(date('Y w', strtotime('this Monday'))."\n"); print(date('Y w', strtotime('last Monday'))."\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.60.0110.00716.63
8.3.50.0110.00921.23
8.3.40.0040.01119.02
8.3.30.0090.00618.59
8.3.20.0080.00020.16
8.3.10.0050.00321.71
8.3.00.0030.00623.50
8.2.180.0150.00018.41
8.2.170.0070.00722.96
8.2.160.0130.00020.35
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0030.00521.20
8.2.120.0030.00526.35
8.2.110.0060.00321.12
8.2.100.0080.00418.05
8.2.90.0040.00419.36
8.2.80.0090.00017.97
8.2.70.0000.00917.63
8.2.60.0040.00418.05
8.2.50.0080.00018.07
8.2.40.0040.00422.28
8.2.30.0070.00019.49
8.2.20.0040.00417.75
8.2.10.0000.00718.08
8.2.00.0000.00818.01
8.1.280.0030.01225.92
8.1.270.0000.00822.23
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0060.00322.58
8.1.230.0070.00317.70
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00717.50
8.1.190.0000.00817.60
8.1.180.0040.00418.10
8.1.170.0040.00418.90
8.1.160.0060.00320.83
8.1.150.0030.00518.92
8.1.140.0040.00419.60
8.1.130.0040.00417.81
8.1.120.0080.00017.55
8.1.110.0040.00417.55
8.1.100.0000.00717.69
8.1.90.0070.00017.65
8.1.80.0040.00417.66
8.1.70.0040.00417.63
8.1.60.0050.00217.70
8.1.50.0040.00417.71
8.1.40.0090.00317.64
8.1.30.0040.00417.73
8.1.20.0000.00817.78
8.1.10.0020.00517.66
8.1.00.0040.00417.67
8.0.300.0000.00718.77
8.0.290.0070.00016.63
8.0.280.0000.00718.41
8.0.270.0040.00417.32
8.0.260.0000.00717.34
8.0.250.0070.00017.13
8.0.240.0030.00317.11
8.0.230.0000.00717.16
8.0.220.0000.00817.02
8.0.210.0000.00816.99
8.0.200.0030.00317.18
8.0.190.0070.00017.12
8.0.180.0000.00717.14
8.0.170.0040.00417.10
8.0.160.0050.00217.11
8.0.150.0030.00317.09
8.0.140.0040.00417.00
8.0.130.0030.00313.46
8.0.120.0060.00317.03
8.0.110.0070.00017.00
8.0.100.0040.00417.00
8.0.90.0040.00417.13
8.0.80.0120.00617.13
8.0.70.0000.00817.02
8.0.60.0040.00416.94
8.0.50.0000.00716.91
8.0.30.0160.00017.20
8.0.20.0120.00717.40
8.0.10.0000.00817.21
8.0.00.0090.00816.75
7.4.330.0050.00016.78
7.4.320.0000.00616.52
7.4.300.0080.00016.71
7.4.290.0040.00416.70
7.4.280.0040.00416.49
7.4.270.0030.00316.58
7.4.260.0080.00016.45
7.4.250.0000.00816.52
7.4.240.0000.00716.42
7.4.230.0070.00016.76
7.4.220.0140.00716.57
7.4.210.0040.01116.77
7.4.200.0030.00316.45
7.4.160.0130.00316.46
7.4.150.0030.01517.40
7.4.140.0120.00917.86
7.4.130.0130.00416.55
7.4.120.0130.00816.61
7.4.110.0100.00716.52
7.4.100.0060.01616.68
7.4.90.0070.01016.58
7.4.80.0030.01419.39
7.4.70.0140.00316.62
7.4.60.0100.01016.61
7.4.50.0030.01316.54
7.4.40.0080.00916.60
7.4.30.0090.00916.58
7.4.00.0100.00615.20
7.3.330.0030.00313.29
7.3.320.0000.00513.29
7.3.310.0000.00716.56
7.3.300.0000.00716.39
7.3.290.0080.00916.39
7.3.280.0090.00816.43
7.3.270.0090.00917.40
7.3.260.0100.00716.47
7.3.250.0110.00716.50
7.3.240.0100.01016.54
7.3.230.0100.00716.65
7.3.210.0030.01316.57
7.3.200.0100.00619.39
7.3.190.0100.01316.86
7.3.180.0090.00916.41
7.3.170.0090.01216.47
7.3.160.0100.00616.47
7.2.330.0070.01016.88
7.2.320.0160.00616.91
7.2.310.0070.01016.93
7.2.300.0090.00916.75
7.2.290.0060.01016.67
7.2.60.0070.00416.95
7.2.00.0030.00919.46
7.1.200.0060.00615.96
7.1.100.0250.00918.25
7.1.70.0040.00417.38
7.1.60.0110.01519.28
7.1.50.0110.01116.84
7.1.00.0100.07022.40
7.0.200.0220.00914.59
7.0.80.0030.04319.85
7.0.70.0070.04319.96
7.0.60.0070.05019.99
7.0.50.0100.08320.23
7.0.40.0100.04020.13
7.0.30.0170.05020.08
7.0.20.0030.04319.96
7.0.10.0100.08020.12
7.0.00.0170.05720.11
5.6.280.0000.07321.13
5.6.230.0030.04720.48
5.6.220.0030.04320.67
5.6.210.0130.06320.56
5.6.200.0100.05020.93
5.6.190.0100.07721.04
5.6.180.0230.07020.93
5.6.170.0170.06720.95
5.6.160.0130.07721.04
5.6.150.0130.07720.96
5.6.140.0130.06721.08
5.6.130.0130.04720.95
5.6.120.0030.08721.10
5.6.110.0030.05320.99
5.6.100.0070.08721.12
5.6.90.0170.07320.93
5.6.80.0130.03720.34
5.6.70.0030.05720.48
5.6.60.0000.08320.45
5.6.50.0130.08020.43
5.6.40.0130.06320.41
5.6.30.0100.07320.40
5.6.20.0030.04320.43
5.6.10.0000.08320.43
5.6.00.0070.07720.41
5.5.370.0070.04320.34
5.5.360.0030.08320.53
5.5.350.0170.07720.46
5.5.340.0030.04320.90
5.5.330.0070.06020.82
5.5.320.0130.07720.86
5.5.310.0030.05020.91
5.5.300.0130.05020.87
5.5.290.0130.08320.76
5.5.280.0200.07320.76
5.5.270.0130.04320.88
5.5.260.0030.08320.78
5.5.250.0070.08320.57
5.5.240.0170.06720.11
5.5.230.0030.05320.20
5.5.220.0130.07020.08
5.5.210.0100.07020.29
5.5.200.0030.08020.25
5.5.190.0070.05020.18
5.5.180.0030.06320.12
5.5.160.0070.04320.12
5.5.150.0100.07320.21
5.5.140.0100.07320.21
5.5.130.0170.04020.16
5.5.120.0070.08020.11
5.5.110.0100.05320.16
5.5.100.0130.05320.11
5.5.90.0070.08020.01
5.5.80.0100.07320.12
5.5.70.0070.05320.08
5.5.60.0130.06720.04
5.5.50.0030.07020.14
5.5.40.0070.04719.99
5.5.30.0100.05020.08
5.5.20.0130.07020.14
5.5.10.0100.07020.12
5.5.00.0130.04320.02

preferences:
39.77 ms | 401 KiB | 5 Q