3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('UTC'); $timestamp = mktime(0,0,0,11,1,2014); var_dump(strtotime('4 thursdays', $timestamp)); var_dump(strtotime('first thursday + 3 weeks', $timestamp)); date_default_timezone_set('America/Chicago'); $timestamp = mktime(0,0,0,11,1,2014); var_dump(strtotime('4 thursdays', $timestamp)); var_dump(strtotime('first thursday + 3 weeks', $timestamp));

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.1.20.0040.00417.76
8.1.10.0000.00717.67
8.1.00.0040.00417.46
8.0.150.0050.00316.99
8.0.140.0000.00817.04
8.0.130.0060.00013.46
8.0.120.0040.00416.95
8.0.110.0040.00417.00
8.0.100.0070.00017.09
8.0.90.0050.00216.89
8.0.80.0230.00017.07
8.0.70.0080.00016.95
8.0.60.0050.00316.92
8.0.50.0050.00316.90
8.0.30.0100.01017.34
8.0.20.0110.00917.40
8.0.10.0000.00717.09
8.0.00.0110.01016.92
7.4.270.0030.00316.71
7.4.260.0050.00316.51
7.4.250.0040.00416.64
7.4.240.0020.00616.67
7.4.230.0040.00416.60
7.4.220.0150.01516.77
7.4.210.0110.00616.62
7.4.200.0040.00416.46
7.4.160.0090.00616.63
7.4.150.0140.01017.40
7.4.140.0110.01017.86
7.4.130.0140.00516.50
7.4.120.0100.00716.70
7.4.110.0090.00916.54
7.4.100.0090.00816.58
7.4.90.0030.01516.66
7.4.80.0000.01819.39
7.4.70.0160.00716.55
7.4.60.0070.01016.58
7.4.50.0000.00916.59
7.4.40.0120.00416.55
7.4.30.0150.00316.78
7.4.00.0030.01015.03
7.3.330.0030.00313.30
7.3.320.0140.00013.30
7.3.310.0030.00316.52
7.3.300.0050.00216.37
7.3.290.0000.00716.24
7.3.280.0140.00616.36
7.3.270.0130.00417.40
7.3.260.0150.00416.42
7.3.250.0170.00616.54
7.3.240.0090.00816.62
7.3.230.0070.01316.40
7.3.210.0120.00616.49
7.3.200.0070.01619.39
7.3.190.0070.01016.44
7.3.180.0080.00816.55
7.3.170.0150.00816.37
7.3.160.0180.00016.52
7.2.330.0040.01516.77
7.2.320.0060.01216.61
7.2.310.0030.01316.59
7.2.300.0070.01516.81
7.2.290.0090.00916.60
7.2.60.0120.00317.08
7.2.00.0120.00619.36
7.1.200.0090.00615.99
7.1.100.0030.00918.55
7.1.70.0040.00417.40
7.1.60.0000.02419.50
7.1.50.0070.01516.98
7.1.00.0070.07322.44
7.0.200.0170.00316.76
7.0.140.0030.07022.07
7.0.100.0370.04719.95
7.0.90.0030.08319.98
7.0.80.0070.04720.02
7.0.70.0030.04019.87
7.0.60.0100.04019.94
7.0.50.0070.04320.17
7.0.40.0000.04320.14
7.0.30.0030.04320.08
7.0.20.0070.04020.11
7.0.10.0070.04020.05
7.0.00.0100.03720.07
5.6.280.0070.07020.88
5.6.250.0070.05020.56
5.6.240.0170.07720.63
5.6.230.0130.05320.65
5.6.220.0070.03720.62
5.6.210.0070.04020.55
5.6.200.0100.03720.98
5.6.190.0100.04021.03
5.6.180.0200.02721.10
5.6.170.0070.04021.04
5.6.160.0070.04021.08
5.6.150.0030.04321.00
5.6.140.0100.03321.00
5.6.130.0030.04321.04
5.6.120.0100.03721.08
5.6.110.0030.04320.95
5.6.100.0100.04020.93
5.6.90.0100.03720.89
5.6.80.0000.04320.39
5.6.70.0130.03020.45
5.6.60.0070.03720.41
5.6.50.0100.03320.34
5.6.40.0030.05020.46
5.6.30.0030.04020.38
5.6.20.0030.03320.41
5.6.10.0070.03320.46
5.6.00.0070.03020.37
5.5.380.0070.07720.35
5.5.370.0100.07320.38
5.5.360.0070.04320.33
5.5.350.0030.04320.41
5.5.340.0070.04020.90
5.5.330.0070.04020.77
5.5.320.0030.04320.89
5.5.310.0000.05020.87
5.5.300.0130.03020.77
5.5.290.0000.05720.86
5.5.280.0070.04020.91
5.5.270.0030.03720.72
5.5.260.0030.04320.74
5.5.250.0130.03320.68
5.5.240.0000.04720.14
5.5.230.0070.03720.11
5.5.220.0030.04720.27
5.5.210.0030.03320.15
5.5.200.0100.03019.99
5.5.190.0070.03720.23
5.5.180.0030.04320.25
5.5.160.0030.03320.25
5.5.150.0100.03020.22
5.5.140.0070.03320.22
5.5.130.0070.03720.14
5.5.120.0070.06720.17
5.5.110.0030.08020.11
5.5.100.0100.06720.11
5.5.90.0030.06020.06
5.5.80.0100.07320.09
5.5.70.0100.06020.14
5.5.60.0130.06320.08
5.5.50.0130.07020.13
5.5.40.0130.07720.04
5.5.30.0070.07020.10
5.5.20.0130.04720.09
5.5.10.0170.04020.05
5.5.00.0170.06720.06
5.4.450.0100.03319.47
5.4.440.0070.03719.45
5.4.430.0070.03719.45
5.4.420.0030.04019.36
5.4.410.0030.03319.26
5.4.400.0000.04019.10
5.4.390.0070.03718.98
5.4.380.0000.04018.90
5.4.370.0070.03018.97
5.4.360.0030.03319.05
5.4.350.0030.03719.07
5.4.340.0100.03018.81
5.4.320.0070.03318.96
5.4.310.0000.04018.95
5.4.300.0030.03318.88
5.4.290.0130.04318.94
5.4.280.0100.05719.05
5.4.270.0100.07318.96
5.4.260.0130.05319.08
5.4.250.0030.06718.88
5.4.240.0070.06719.12
5.4.230.0070.08019.05
5.4.220.0130.07318.93
5.4.210.0100.07019.14
5.4.200.0030.04319.02
5.4.190.0100.04018.96
5.4.180.0100.03318.93
5.4.170.0030.07719.04
5.4.160.0100.04019.01
5.4.150.0030.08019.10
5.4.140.0030.04316.18
5.4.130.0070.07016.44
5.4.120.0070.07016.32
5.4.110.0070.06716.50
5.4.100.0100.07316.50
5.4.90.0030.06716.51
5.4.80.0000.04016.46
5.4.70.0100.07316.47
5.4.60.0100.07016.42
5.4.50.0030.07316.27
5.4.40.0100.05716.29
5.4.30.0100.06716.18
5.4.20.0000.08316.35
5.4.10.0030.06716.26
5.4.00.0170.03015.83
5.3.290.0030.03314.57
5.3.280.0100.04014.59
5.3.270.0070.03714.59
5.3.260.0070.07314.59
5.3.250.0130.06714.47
5.3.240.0070.07714.43
5.3.230.0100.04314.57
5.3.220.0130.03714.56
5.3.210.0100.06714.54
5.3.200.0100.03714.42
5.3.190.0070.06314.42
5.3.180.0000.06014.55
5.3.170.0100.06014.55
5.3.160.0100.07014.39
5.3.150.0130.06714.42
5.3.140.0070.05714.46
5.3.130.0070.05014.51
5.3.120.0130.06714.48
5.3.110.0130.06014.36
5.3.100.0070.06013.91
5.3.90.0100.07313.92
5.3.80.0230.03013.87
5.3.70.0070.06313.78
5.3.60.0100.07013.99
5.3.50.0100.07313.85
5.3.40.0000.07713.93
5.3.30.0070.06313.91
5.3.20.0100.06313.46
5.3.10.0070.07313.61
5.3.00.0170.03313.54
5.2.170.0100.04311.14
5.2.160.0030.05011.14
5.2.150.0030.03011.14
5.2.140.0030.03710.96
5.2.130.0130.05311.06
5.2.120.0100.05011.11
5.2.110.0070.06011.09
5.2.100.0070.03711.09
5.2.90.0030.06011.09
5.2.80.0030.06010.88
5.2.70.0070.03311.09
5.2.60.0100.03311.09
5.2.50.0030.04711.09
5.2.40.0070.05711.04
5.2.30.0070.06011.01
5.2.20.0070.04710.98
5.2.10.0070.05710.78
5.2.00.0070.05710.64
5.1.60.0030.02710.00
5.1.50.0030.0579.83
5.1.40.0100.0509.96
5.1.30.0100.05310.24
5.1.20.0030.06310.29
5.1.10.0030.05310.09
5.1.00.0000.03010.07
5.0.50.0030.0438.50
5.0.40.0030.0308.50
5.0.30.0030.0578.50
5.0.20.0000.0538.50
5.0.10.0100.0438.50
5.0.00.0070.0538.50
4.4.90.0000.0378.50
4.4.80.0000.0238.50
4.4.70.0000.0378.50
4.4.60.0030.0378.50
4.4.50.0000.0378.50
4.4.40.0000.0578.50
4.4.30.0030.0338.50
4.4.20.0030.0378.50
4.4.10.0030.0178.50
4.4.00.0000.0578.50
4.3.110.0070.0178.50
4.3.100.0030.0338.50
4.3.90.0030.0208.50
4.3.80.0000.0538.50
4.3.70.0070.0138.50
4.3.60.0000.0378.50
4.3.50.0030.0338.50
4.3.40.0000.0538.50
4.3.30.0000.0378.50
4.3.20.0000.0308.50
4.3.10.0000.0178.50
4.3.00.0000.0278.50

preferences:
42.03 ms | 455 KiB | 5 Q