3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date_default_timezone_get() . "\n; date_default_timezone_set('UTC'); $timestamp = mktime(0,0,0,11,1,2014); echo strtotime('4 thursdays', $timestamp) . "\n"; echo strtotime('first thursday + 3 weeks', $timestamp) . "\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)
5.6.80.0130.08020.38
5.5.240.0070.05320.26
5.4.400.0200.06318.74
5.4.390.0180.06318.60
5.4.380.0230.06518.78
5.4.370.0220.06518.79
5.4.360.0320.06018.81
5.4.350.0250.05318.68
5.4.340.0220.06318.82
5.4.320.0300.05818.63
5.4.310.0280.05518.77
5.4.300.0330.05018.47
5.4.290.0370.04518.51
5.4.280.0300.05318.55
5.4.270.0150.06718.51
5.4.260.0220.05318.65
5.4.250.0220.05218.71
5.4.240.0300.05218.52
5.4.230.0300.05018.60
5.4.220.0320.05818.75
5.4.210.0250.04818.77
5.4.200.0130.05516.71
5.4.190.0230.05018.57
5.4.180.0230.05218.75
5.4.170.0230.06218.76
5.4.160.0220.05318.79
5.4.150.0170.05318.66
5.4.140.0230.04816.35
5.4.130.0300.05016.30
5.4.120.0270.04716.32
5.4.110.0150.05216.27
5.4.100.0220.05516.36
5.4.90.0250.04716.26
5.4.80.0180.04816.25
5.4.70.0220.04816.25
5.4.60.0180.05016.25
5.4.50.0130.05516.34
5.4.40.0250.04816.28
5.4.30.0320.03816.24
5.4.20.0180.05016.22
5.4.10.0180.05016.26
5.4.00.0280.04715.69
5.3.290.0150.06014.73
5.3.280.0150.06714.54
5.3.270.0170.07014.53
5.3.260.0230.06314.67
5.3.250.0120.05814.64
5.3.240.0150.06214.58
5.3.230.0170.05714.57
5.3.220.0170.06214.52
5.3.210.0170.05814.63
5.3.200.0180.05214.66
5.3.190.0130.06014.61
5.3.180.0280.04314.59
5.3.170.0200.06214.48
5.3.160.0250.05814.51
5.3.150.0250.04714.61
5.3.140.0170.05214.57
5.3.130.0180.05314.58
5.3.120.0280.04714.59
5.3.110.0250.04714.52
5.3.100.0220.05014.06
5.3.90.0270.05714.12
5.3.80.0220.06013.95
5.3.70.0200.05814.02
5.3.60.0270.05014.02
5.3.50.0220.05513.95
5.3.40.0300.05713.89
5.3.30.0230.05713.95
5.3.20.0280.05013.68
5.3.10.0320.04713.62
5.3.00.0180.05813.60
5.2.170.0180.04311.14
5.2.160.0120.05511.19
5.2.150.0150.05211.08
5.2.140.0070.05011.14
5.2.130.0150.04211.10
5.2.120.0080.04711.10
5.2.110.0150.04011.09
5.2.100.0150.04511.15
5.2.90.0120.04211.07
5.2.80.0170.04211.11
5.2.70.0120.04311.20
5.2.60.0130.04011.02
5.2.50.0180.03811.12
5.2.40.0220.03310.94
5.2.30.0150.04811.05
5.2.20.0120.05011.05
5.2.10.0150.04710.92
5.2.00.0120.05210.76
5.1.60.0080.04010.00
5.1.50.0170.03810.10
5.1.40.0150.04810.00
5.1.30.0120.04510.41
5.1.20.0170.03710.40
5.1.10.0130.03210.17
5.1.00.0100.04510.16
5.0.50.0120.0278.61
5.0.40.0100.0338.50
5.0.30.0080.0438.35
5.0.20.0070.0288.36
5.0.10.0100.0328.23
5.0.00.0070.0508.32
4.4.90.0120.0227.45
4.4.80.0070.0227.45
4.4.70.0070.0227.45
4.4.60.0100.0227.45
4.4.50.0100.0237.45
4.4.40.0050.0357.45
4.4.30.0070.0207.45
4.4.20.0030.0287.45
4.4.10.0100.0227.45
4.4.00.0030.0387.45
4.3.110.0080.0227.45
4.3.100.0120.0187.45
4.3.90.0100.0227.45
4.3.80.0120.0337.45
4.3.70.0080.0237.45
4.3.60.0070.0207.45
4.3.50.0100.0227.45
4.3.40.0100.0357.45
4.3.30.0050.0257.45
4.3.20.0000.0307.45
4.3.10.0030.0257.45
4.3.00.0030.0277.01

preferences:
131.22 ms | 1398 KiB | 7 Q