3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = strtotime('2014-06-05'); $next_monday = strtotime('2014-06-09'); if (($next_monday-$now) < (4*86400)){ $next_monday = $next_monday + 604800;//add a week $third_friday = $next_monday+1555200; //add 18 days to get the 3rd friday $start_date = date('Y-m-d', $third_friday) . "T00:00:00"; }else{ $third_friday = $next_monday+1555200;//add 18 days to get the 3rd friday $start_date = date('Y-m-d', $third_friday) . "T00:00:00"; } echo $start_date; ?>

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.0070.01116.50
8.3.50.0130.01022.13
8.3.40.0070.00718.71
8.3.30.0100.00319.13
8.3.20.0000.00720.21
8.3.10.0000.00923.59
8.3.00.0060.00318.95
8.2.180.0040.01816.50
8.2.170.0100.00722.96
8.2.160.0190.00020.39
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0070.00020.35
8.2.110.0060.00322.13
8.2.100.0120.00017.91
8.2.90.0000.00819.17
8.2.80.0000.00817.97
8.2.70.0050.00317.75
8.2.60.0050.00318.05
8.2.50.0080.00018.07
8.2.40.0040.00419.95
8.2.30.0020.00518.36
8.2.20.0050.00217.73
8.2.10.0030.00618.11
8.2.00.0040.00417.86
8.1.280.0150.00025.92
8.1.270.0090.00923.96
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.91
8.1.230.0050.00519.11
8.1.220.0030.00617.78
8.1.210.0040.00418.77
8.1.200.0030.00717.60
8.1.190.0000.00817.35
8.1.180.0050.00319.26
8.1.170.0060.00618.59
8.1.160.0040.00421.95
8.1.150.0040.00418.83
8.1.140.0070.00017.69
8.1.130.0070.00017.80
8.1.120.0030.00517.60
8.1.110.0000.00917.69
8.1.100.0040.00417.54
8.1.90.0000.00817.55
8.1.80.0070.00017.54
8.1.70.0030.00317.57
8.1.60.0040.00417.73
8.1.50.0040.00417.45
8.1.40.0040.00417.55
8.1.30.0030.00617.63
8.1.20.0030.00617.77
8.1.10.0000.00817.57
8.1.00.0050.00317.60
8.0.300.0040.00418.77
8.0.290.0000.00717.30
8.0.280.0030.00318.56
8.0.270.0030.00317.32
8.0.260.0000.00617.31
8.0.250.0030.00317.17
8.0.240.0050.00317.13
8.0.230.0030.00317.14
8.0.220.0000.00716.97
8.0.210.0030.00317.09
8.0.200.0000.01017.16
8.0.190.0040.00417.13
8.0.180.0040.00317.08
8.0.170.0040.00417.11
8.0.160.0040.00417.13
8.0.150.0050.00316.89
8.0.140.0070.00317.04
8.0.130.0050.00513.43
8.0.120.0050.00317.11
8.0.110.0000.00717.09
8.0.100.0000.00816.96
8.0.90.0050.00217.05
8.0.80.0000.01416.99
8.0.70.0040.00417.04
8.0.60.0000.00816.85
8.0.50.0030.00517.04
8.0.30.0080.01017.07
8.0.20.0080.01017.42
8.0.10.0040.00417.04
8.0.00.0110.00717.04
7.4.330.0050.00015.14
7.4.320.0000.00716.71
7.4.300.0060.00016.54
7.4.290.0040.00416.57
7.4.280.0000.00716.59
7.4.270.0070.00016.50
7.4.260.0030.00616.62
7.4.250.0040.00416.58
7.4.240.0040.00416.50
7.4.230.0070.00016.69
7.4.220.0060.01216.56
7.4.210.0090.00916.56
7.4.200.0030.00316.54
7.4.190.0000.00816.75
7.4.160.0130.00316.61
7.4.150.0100.01017.40
7.4.140.0070.01217.86
7.4.130.0100.00716.51
7.4.120.0100.00716.50
7.4.110.0140.00316.63
7.4.100.0100.00716.60
7.4.90.0110.00616.65
7.4.80.0150.00919.39
7.4.70.0080.00816.51
7.4.60.0070.01016.75
7.4.50.0030.00616.34
7.4.40.0070.01016.45
7.4.30.0030.01316.60
7.4.00.0080.00815.21
7.3.330.0030.00313.07
7.3.320.0000.00613.30
7.3.310.0030.00316.32
7.3.300.0030.00316.38
7.3.290.0120.00916.43
7.3.280.0100.00716.38
7.3.270.0120.00817.40
7.3.260.0120.00616.64
7.3.250.0090.01016.37
7.3.240.0000.01716.80
7.3.230.0100.00716.45
7.3.210.0080.00816.70
7.3.200.0080.01019.39
7.3.190.0160.00616.63
7.3.180.0140.00316.77
7.3.170.0080.00816.60
7.3.160.0130.00316.55
7.3.120.0110.00415.10
7.2.330.0100.00716.68
7.2.320.0120.00616.87
7.2.310.0140.00616.93
7.2.300.0090.00916.91
7.2.290.0110.01216.84
7.1.70.0070.00717.53
7.1.60.0090.00317.41
7.1.50.0100.01017.05
7.1.00.0030.07722.44
7.0.200.0090.00916.84
7.0.140.0000.07721.95
7.0.120.0030.04722.14
7.0.110.0030.06022.07
7.0.100.0100.04021.98
7.0.90.0030.05022.14
7.0.80.0000.04021.97
7.0.70.0070.06021.98
7.0.60.0000.07021.98
7.0.50.0030.05322.03
7.0.40.0000.04019.99
7.0.30.0100.07319.88
7.0.20.0000.04720.10
7.0.10.0070.05019.96
7.0.00.0030.07320.08
5.6.280.0100.06721.07
5.6.270.0070.03720.75
5.6.260.0000.04320.79
5.6.250.0070.04721.02
5.6.240.0000.04321.05
5.6.230.0000.03721.01
5.6.220.0000.05020.78
5.6.210.0000.04720.90
5.6.200.0070.07020.99
5.6.190.0030.06020.70
5.6.180.0070.04320.70
5.6.170.0030.06320.98
5.6.160.0030.03720.80
5.6.150.0000.08021.01
5.6.140.0030.04320.88
5.6.130.0030.04021.02
5.6.120.0100.03320.88
5.6.110.0030.03720.77
5.6.100.0030.04721.02
5.6.90.0000.05320.68
5.6.80.0100.05020.26
5.6.70.0000.06320.37
5.6.60.0100.07320.39
5.6.50.0000.08320.25
5.6.40.0000.07320.23
5.6.30.0000.04320.36
5.6.20.0030.05720.03
5.6.10.0000.04720.15
5.6.00.0070.07720.11
5.5.380.0030.03717.57
5.5.370.0000.03317.53
5.5.360.0000.03717.52
5.5.350.0100.06017.62
5.5.340.0030.07717.86
5.5.330.0100.06317.99
5.5.320.0030.07717.98
5.5.310.0030.05718.05
5.5.300.0000.07318.16
5.5.290.0000.06318.25
5.5.280.0000.04318.13
5.5.270.0130.04717.88
5.5.260.0070.06017.98
5.5.250.0030.08017.91
5.5.240.0000.03717.37
5.5.230.0070.03317.27
5.5.220.0000.04017.14
5.5.210.0030.03317.47
5.5.200.0000.05717.21
5.5.190.0030.07017.20
5.5.180.0000.04017.20
5.5.160.0000.04317.36
5.5.150.0030.03717.36
5.5.140.0000.03717.43
5.5.130.0030.03717.47
5.5.120.0000.04017.47
5.5.110.0000.03717.46
5.5.100.0000.06317.42
5.5.90.0070.06317.11
5.5.80.0030.06717.37
5.5.70.0000.04717.26
5.5.60.0030.03717.33
5.5.50.0030.03717.25
5.5.40.0000.04317.26
5.5.30.0030.03717.37
5.5.20.0000.04017.08
5.5.10.0030.04017.36
5.5.00.0000.08017.10
5.4.450.0030.05719.44
5.4.440.0070.06019.20
5.4.430.0030.04319.25
5.4.420.0030.03719.29
5.4.410.0030.03719.09
5.4.400.0030.03318.91
5.4.390.0070.06319.02
5.4.380.0000.07018.98
5.4.370.0070.03718.90
5.4.360.0030.06019.20
5.4.350.0030.07719.11
5.4.340.0100.08718.90
5.4.320.0030.05019.06
5.4.310.0070.03018.98
5.4.300.0000.03718.93
5.4.290.0070.05318.93
5.4.280.0000.03719.19
5.4.270.0000.05018.91
5.4.260.0030.04719.04
5.4.250.0070.03319.12
5.4.240.0000.07719.11
5.4.230.0030.04019.07
5.4.220.0030.05318.87
5.4.210.0070.04019.21
5.4.200.0000.04018.97
5.4.190.0030.04319.18
5.4.180.0030.06019.05
5.4.170.0030.03318.86
5.4.160.0030.05018.88
5.4.150.0070.06719.11
5.4.140.0030.06716.20
5.4.130.0030.03716.23
5.4.120.0030.03316.44
5.4.110.0070.04316.24
5.4.100.0030.06316.20
5.4.90.0030.05716.53
5.4.80.0000.04316.36
5.4.70.0030.04716.18
5.4.60.0030.06016.16
5.4.50.0000.03716.11
5.4.40.0030.06316.53
5.4.30.0030.07016.11
5.4.20.0030.05716.42
5.4.10.0070.03316.05
5.4.00.0070.03315.95
5.3.290.0070.03314.53
5.3.280.0100.03714.48
5.3.270.0030.03714.67
5.3.260.0070.06314.48
5.3.250.0030.06314.45
5.3.240.0000.04014.63
5.3.230.0070.05314.53
5.3.220.0030.07014.64
5.3.210.0030.03714.46
5.3.200.0000.03714.36
5.3.190.0000.07314.50
5.3.180.0000.05314.35
5.3.170.0000.07714.44
5.3.160.0100.05714.66
5.3.150.0030.07314.47
5.3.140.0100.06314.49
5.3.130.0030.06314.64
5.3.120.0030.07714.34
5.3.110.0030.05314.55
5.3.100.0170.03314.05
5.3.90.0070.03314.03
5.3.80.0030.04013.89
5.3.70.0000.06313.91
5.3.60.0000.05014.10
5.3.50.0000.04313.83
5.3.40.0000.03713.79
5.3.30.0070.03313.79
5.3.20.0000.06713.76
5.3.10.0070.05713.58
5.3.00.0000.03313.52
5.2.170.0030.02711.08
5.2.160.0000.04311.06
5.2.150.0000.04011.08
5.2.140.0030.02711.13
5.2.130.0000.03011.26
5.2.120.0000.02710.89
5.2.110.0000.05311.11
5.2.100.0000.03011.02
5.2.90.0000.03311.11
5.2.80.0070.04711.02
5.2.70.0030.03011.15
5.2.60.0000.04010.96
5.2.50.0000.02310.80
5.2.40.0000.06010.94
5.2.30.0030.02710.89
5.2.20.0000.02710.75
5.2.10.0000.05010.93
5.2.00.0030.04710.61
5.1.60.0030.0279.81
5.1.50.0000.0379.97
5.1.40.0070.0509.98
5.1.30.0000.03710.23
5.1.20.0000.05710.57
5.1.10.0000.05010.23
5.1.00.0030.02010.00
5.0.50.0030.0379.81
5.0.40.0000.0279.81
5.0.30.0030.0279.81
5.0.20.0000.0279.81
5.0.10.0000.0179.81
5.0.00.0000.0279.81
4.4.90.0000.0139.81
4.4.80.0030.0139.81
4.4.70.0000.0139.81
4.4.60.0000.0139.81
4.4.50.0030.0139.81
4.4.40.0000.0279.81
4.4.30.0000.0179.81
4.4.20.0000.0209.81
4.4.10.0000.0139.81
4.4.00.0000.0339.81
4.3.110.0000.0309.81
4.3.100.0000.0309.81
4.3.90.0000.0139.81
4.3.80.0100.0439.81
4.3.70.0030.0309.81
4.3.60.0000.0339.81
4.3.50.0100.0279.81
4.3.40.0000.0409.81
4.3.30.0030.0309.81
4.3.20.0030.0339.81
4.3.10.0000.0179.81
4.3.00.0000.0279.81

preferences:
58.02 ms | 401 KiB | 5 Q