3v4l.org

run code in 300+ PHP versions simultaneously
<?php $F = strftime("%F") ? "%F" : "%Y-%m-%d"; foreach (array("Sat 2016-07-30", "Sun 2016-07-31", "Mon 2016-08-01", "Tue 2016-08-02") as $ref) { $ref = strtotime($ref); echo strftime("Relative to %a $F\n", $ref); foreach (array("Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun") as $day) { echo strftime("{$day} this week = %a $F\t", strtotime("{$day} this week", $ref)); echo strftime("this week {$day} = %a $F\n", strtotime("this week {$day}", $ref)); } echo "\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.62
8.3.50.0120.00320.08
8.3.40.0040.01218.80
8.3.30.0130.00318.96
8.3.20.0040.00421.86
8.3.10.0000.00821.70
8.3.00.0090.00619.85
8.2.180.0040.01525.92
8.2.170.0160.00019.20
8.2.160.0170.00022.96
8.2.150.0030.00525.66
8.2.140.0000.00824.66
8.2.130.0040.00422.38
8.2.120.0050.00326.16
8.2.110.0000.01021.09
8.2.100.0080.00418.16
8.2.90.0080.00019.25
8.2.80.0050.00317.97
8.2.70.0030.00617.88
8.2.60.0100.00318.05
8.2.50.0030.00618.10
8.2.40.0040.00422.50
8.2.30.0030.00519.32
8.2.20.0060.00317.95
8.2.10.0000.00818.19
8.2.00.0080.00018.25
8.1.280.0180.00325.92
8.1.270.0080.00023.81
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0080.00422.09
8.1.230.0100.00322.48
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0070.00317.60
8.1.190.0050.00317.35
8.1.180.0050.00318.10
8.1.170.0000.00918.79
8.1.160.0070.00022.15
8.1.150.0040.00421.00
8.1.140.0070.00319.51
8.1.130.0040.00417.59
8.1.120.0040.00417.70
8.1.110.0080.00017.59
8.1.100.0030.00617.67
8.1.90.0000.00717.71
8.1.80.0000.00717.67
8.1.70.0040.00417.65
8.1.60.0000.00917.64
8.1.50.0030.00617.52
8.1.40.0000.00917.57
8.1.30.0040.00717.82
8.1.20.0040.00417.73
8.1.10.0090.00017.66
8.1.00.0000.00817.69
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0000.00718.56
8.0.270.0040.00417.26
8.0.260.0030.00316.98
8.0.250.0040.00417.12
8.0.240.0000.00817.19
8.0.230.0070.00017.20
8.0.220.0080.00017.16
8.0.210.0030.00317.05
8.0.200.0040.00417.14
8.0.190.0000.00717.10
8.0.180.0050.00317.08
8.0.170.0030.00617.07
8.0.160.0070.00017.14
8.0.150.0000.00717.03
8.0.140.0080.00017.12
8.0.130.0050.00013.54
8.0.120.0050.00516.99
8.0.110.0000.00817.14
8.0.100.0000.00817.00
8.0.90.0020.00516.96
8.0.80.0060.01017.16
8.0.70.0000.00817.07
8.0.60.0040.00417.00
8.0.50.0080.00017.00
8.0.30.0110.00817.36
8.0.20.0090.01117.40
8.0.10.0040.00417.08
8.0.00.0050.01416.88
7.4.330.0000.00515.08
7.4.320.0070.00016.70
7.4.300.0060.00016.63
7.4.290.0030.00416.75
7.4.280.0030.00516.58
7.4.270.0000.00716.63
7.4.260.0070.00016.64
7.4.250.0000.00816.56
7.4.240.0020.00516.67
7.4.230.0040.00416.72
7.4.220.0040.01416.63
7.4.210.0110.00416.65
7.4.200.0060.00316.52
7.4.160.0110.00516.78
7.4.150.0150.01217.40
7.4.140.0120.00917.86
7.4.130.0080.01116.78
7.4.120.0100.00716.84
7.4.110.0090.00916.70
7.4.100.0090.01016.74
7.4.90.0150.00416.45
7.4.80.0030.01419.39
7.4.70.0060.01516.85
7.4.60.0120.00616.93
7.4.50.0060.01216.61
7.4.40.0080.01116.47
7.4.30.0060.01216.70
7.4.10.0100.01015.30
7.4.00.0060.01115.11
7.3.330.0000.00513.43
7.3.320.0030.00313.43
7.3.310.0070.00016.52
7.3.300.0080.00016.54
7.3.290.0100.00716.55
7.3.280.0090.01216.48
7.3.270.0130.00717.40
7.3.260.0130.00516.42
7.3.250.0130.00816.55
7.3.240.0050.01516.46
7.3.230.0130.01016.53
7.3.210.0110.00716.41
7.3.200.0090.00916.73
7.3.190.0110.00816.77
7.3.180.0140.00316.52
7.3.170.0070.01116.63
7.3.160.0110.00716.64
7.3.130.0060.01014.95
7.3.120.0060.01115.17
7.3.110.0030.01415.10
7.3.100.0100.00715.13
7.3.90.0060.00615.16
7.3.80.0100.00314.96
7.3.70.0090.00715.13
7.3.60.0060.01114.99
7.3.50.0060.00815.01
7.3.40.0020.01315.03
7.3.30.0050.00514.82
7.3.20.0060.00916.92
7.3.10.0070.00916.60
7.3.00.0020.01516.81
7.2.330.0100.01016.77
7.2.320.0030.02116.55
7.2.310.0100.00717.04
7.2.300.0090.00917.06
7.2.290.0080.00817.00
7.2.260.0130.00615.38
7.2.250.0050.01515.39
7.2.240.0070.01215.41
7.2.230.0140.00315.15
7.2.220.0080.00715.23
7.2.210.0060.00815.21
7.2.200.0050.01015.08
7.2.190.0030.00915.11
7.2.180.0070.00715.13
7.2.170.0070.01015.34
7.2.160.0080.00415.24
7.2.150.0030.01316.85
7.2.140.0030.01217.10
7.2.130.0090.00817.10
7.2.120.0050.00916.92
7.2.110.0080.00816.99
7.2.100.0050.00717.04
7.2.90.0060.00516.97
7.2.80.0050.01217.07
7.2.70.0050.01017.13
7.2.60.0150.00717.10
7.2.50.0070.00517.04
7.2.40.0060.00617.14
7.2.30.0090.00517.23
7.2.20.0070.00817.06
7.2.10.0040.00717.15
7.2.00.0060.01017.89
7.1.330.0040.01315.92
7.1.320.0070.01015.97
7.1.310.0060.00515.83
7.1.300.0020.01216.00
7.1.290.0030.01016.05
7.1.280.0060.01016.04
7.1.270.0080.00315.91
7.1.260.0050.00915.87
7.1.250.0020.01215.91
7.1.240.0060.00615.94
7.1.230.0050.00915.94
7.1.220.0030.00916.05
7.1.210.0050.01115.94
7.1.200.0060.00616.03
7.1.190.0040.00915.94
7.1.180.0110.00316.08
7.1.170.0040.00615.87
7.1.160.0050.00915.93
7.1.150.0040.00916.04
7.1.140.0050.00715.83
7.1.130.0060.00516.03
7.1.120.0080.01015.78
7.1.110.0100.00516.16
7.1.100.0030.00916.85
7.1.90.0040.01015.82
7.1.80.0070.00616.19
7.1.70.0060.00816.29
7.1.60.0040.00916.41
7.1.50.0050.00816.37
7.1.40.0060.00616.17
7.1.30.0090.00416.30
7.1.20.0050.00916.25
7.1.10.0040.01016.14
7.1.00.0060.00916.35
7.0.330.0050.01015.47
7.0.320.0050.00915.48
7.0.310.0040.00915.56
7.0.300.0070.00515.47
7.0.290.0050.00915.67
7.0.280.0060.00915.57
7.0.270.0090.00715.55
7.0.260.0030.01115.38
7.0.250.0070.00315.54
7.0.240.0020.01115.53
7.0.230.0040.00815.56
7.0.220.0050.00915.54
7.0.210.0050.00815.25
7.0.200.0040.00715.91
7.0.190.0030.00915.93
7.0.180.0090.00315.86
7.0.170.0030.00615.87
7.0.160.0060.00515.82
7.0.150.0040.00815.81
7.0.140.0060.00815.80
7.0.130.0050.00815.93
7.0.120.0040.00815.81
7.0.110.0020.01015.87
7.0.100.0030.00915.82
7.0.90.0030.00815.82
7.0.80.0060.00615.83
7.0.70.0060.00315.71
7.0.60.0090.00515.81
7.0.50.0040.00615.73
7.0.40.0060.00314.06
7.0.30.0040.00514.01
7.0.20.0060.00514.15
7.0.10.0020.01014.30
7.0.00.0010.01014.22
5.6.400.0040.01114.53
5.6.390.0050.00914.54
5.6.380.0040.00914.19
5.6.370.0050.00914.38
5.6.360.0090.00714.26
5.6.350.0030.01314.57
5.6.340.0050.01014.41
5.6.330.0050.01014.28
5.6.320.0020.01114.63
5.6.310.0060.00714.51
5.6.300.0030.03016.55
5.6.290.0040.02416.64
5.6.280.0060.02216.55
5.6.270.0020.02616.73
5.6.260.0080.03316.59
5.6.250.0050.02216.74
5.6.240.0060.02016.63
5.6.230.0060.01916.65
5.6.220.0050.01916.67
5.6.210.0050.02716.61
5.6.200.0060.02316.57
5.6.190.0050.02216.59
5.6.180.0070.01816.55
5.6.170.0030.02416.65
5.6.160.0080.01516.64
5.6.150.0040.01916.55
5.6.140.0080.02916.51
5.6.130.0050.01916.65
5.6.120.0020.02716.39
5.6.110.0040.03416.63
5.6.100.0030.02116.71
5.6.90.0040.02616.64
5.6.80.0020.02116.34
5.6.70.0040.01816.24
5.6.60.0040.02016.29
5.6.50.0050.01916.14
5.6.40.0040.01916.29
5.6.30.0090.02916.34
5.6.20.0060.01916.32
5.6.10.0060.02516.31
5.6.00.0040.03416.37

preferences:
59.52 ms | 401 KiB | 5 Q