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) < (5*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.0150.00616.48
8.3.50.0070.01222.03
8.3.40.0110.00418.66
8.3.30.0090.00619.21
8.3.20.0000.00820.20
8.3.10.0060.00323.62
8.3.00.0070.00418.92
8.2.180.0100.00718.29
8.2.170.0070.00722.96
8.2.160.0030.01020.39
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00020.16
8.2.110.0060.00319.30
8.2.100.0080.00417.82
8.2.90.0050.00319.21
8.2.80.0030.00517.97
8.2.70.0060.00317.63
8.2.60.0000.00818.05
8.2.50.0050.00318.07
8.2.40.0050.00319.89
8.2.30.0040.00418.23
8.2.20.0020.00517.75
8.2.10.0000.00718.04
8.2.00.0040.00417.86
8.1.280.0100.00725.92
8.1.270.0000.00923.96
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0060.00321.42
8.1.230.0000.01117.64
8.1.220.0030.00617.76
8.1.210.0050.00318.77
8.1.200.0030.00917.48
8.1.190.0040.00417.48
8.1.180.0000.00819.26
8.1.170.0060.00618.71
8.1.160.0030.00521.99
8.1.150.0070.00018.81
8.1.140.0040.00417.69
8.1.130.0070.00017.81
8.1.120.0030.00417.63
8.1.110.0030.00717.64
8.1.100.0040.00417.70
8.1.90.0020.00517.67
8.1.80.0000.00717.57
8.1.70.0030.00317.62
8.1.60.0040.00417.63
8.1.50.0030.00617.56
8.1.40.0000.00717.64
8.1.30.0000.00817.69
8.1.20.0040.00417.73
8.1.10.0030.00617.51
8.1.00.0070.00017.61
8.0.300.0000.00718.77
8.0.290.0040.00416.85
8.0.280.0040.00418.44
8.0.270.0070.00017.25
8.0.260.0030.00317.33
8.0.250.0060.00017.05
8.0.240.0000.00817.07
8.0.230.0070.00017.10
8.0.220.0000.00717.09
8.0.210.0030.00316.96
8.0.200.0030.00617.08
8.0.190.0030.00517.04
8.0.180.0040.00417.00
8.0.170.0080.00017.09
8.0.160.0000.00717.13
8.0.150.0000.00716.97
8.0.140.0030.00717.06
8.0.130.0000.00613.42
8.0.120.0040.00416.94
8.0.110.0000.00717.05
8.0.100.0040.00417.18
8.0.90.0040.00417.05
8.0.80.0030.01117.12
8.0.70.0050.00316.95
8.0.60.0070.00016.82
8.0.50.0040.00416.98
8.0.30.0070.01317.10
8.0.20.0110.00917.42
8.0.10.0070.00017.09
8.0.00.0130.00516.83
7.4.330.0020.00215.20
7.4.320.0040.00416.59
7.4.300.0000.00616.46
7.4.290.0000.00716.51
7.4.280.0030.00316.70
7.4.270.0000.00716.59
7.4.260.0030.00316.54
7.4.250.0000.00816.63
7.4.240.0030.00516.68
7.4.230.0070.00016.66
7.4.220.0060.01216.59
7.4.210.0070.01016.59
7.4.200.0070.00016.57
7.4.190.0000.00716.52
7.4.160.0170.00016.79
7.4.150.0040.01417.40
7.4.140.0110.01117.86
7.4.130.0100.00816.68
7.4.120.0130.00716.53
7.4.110.0100.00716.73
7.4.100.0070.01416.59
7.4.90.0060.01016.62
7.4.80.0140.00719.39
7.4.70.0110.00716.59
7.4.60.0140.00316.43
7.4.50.0040.00416.68
7.4.40.0080.00816.63
7.4.30.0140.00716.70
7.4.00.0090.00614.79
7.3.330.0060.00013.14
7.3.320.0000.00513.29
7.3.310.0000.00716.24
7.3.300.0070.00016.38
7.3.290.0060.00916.35
7.3.280.0050.01216.38
7.3.270.0060.01017.40
7.3.260.0090.00616.41
7.3.250.0090.00816.41
7.3.240.0070.01416.50
7.3.230.0110.00716.75
7.3.210.0100.00716.44
7.3.200.0190.01019.39
7.3.190.0160.00616.56
7.3.180.0070.01316.60
7.3.170.0060.01016.72
7.3.160.0060.01016.70
7.3.120.0060.00914.95
7.3.10.0030.01316.87
7.3.00.0080.00816.91
7.2.330.0100.00716.95
7.2.320.0060.01116.93
7.2.310.0060.01216.80
7.2.300.0180.00316.63
7.2.290.0110.00916.90
7.2.130.0090.00016.81
7.2.120.0000.01717.20
7.2.110.0060.00716.66
7.2.100.0040.00916.82
7.2.90.0080.00416.95
7.2.80.0060.00916.99
7.2.70.0070.00816.83
7.2.60.0060.00617.03
7.2.50.0070.00517.13
7.2.40.0080.00717.00
7.2.30.0070.00617.12
7.2.20.0060.00817.03
7.2.10.0060.00917.03
7.2.00.0120.00216.97
7.1.250.0080.00415.78
7.1.230.0050.00315.81
7.1.220.0000.01216.15
7.1.210.0030.00616.09
7.1.200.0060.00316.13
7.1.190.0060.00615.87
7.1.180.0070.00416.12
7.1.170.0060.00915.80
7.1.160.0030.00715.92
7.1.150.0060.00915.96
7.1.140.0040.00716.20
7.1.130.0050.00316.09
7.1.120.0090.00315.66
7.1.110.0130.00015.73
7.1.100.0070.00715.73
7.1.90.0070.00416.04
7.1.80.0060.00615.79
7.1.70.0050.00716.78
7.1.60.0100.01017.83
7.1.50.0060.01716.73
7.1.40.0000.01615.97
7.1.30.0030.01215.82
7.1.20.0120.00616.12
7.1.10.0000.01315.93
7.1.00.0010.04118.95
7.0.310.0000.01215.54
7.0.300.0040.00415.75
7.0.290.0040.00415.56
7.0.280.0040.00815.54
7.0.270.0030.00915.58
7.0.260.0060.00515.56
7.0.250.0080.00415.79
7.0.240.0030.01015.66
7.0.230.0030.00615.74
7.0.220.0000.01215.70
7.0.210.0130.00015.36
7.0.200.0020.00916.11
7.0.190.0130.00015.63
7.0.180.0060.00315.64
7.0.170.0030.00315.68
7.0.160.0080.00315.71
7.0.150.0060.00615.78
7.0.140.0000.04518.79
7.0.130.0050.00315.69
7.0.120.0060.00915.31
7.0.110.0070.00715.50
7.0.100.0100.00015.68
7.0.90.0040.04518.68
7.0.80.0090.02818.71
7.0.70.0070.04218.66
7.0.60.0080.04318.60
7.0.50.0020.02618.93
7.0.40.0100.03016.84
7.0.30.0060.03516.90
7.0.20.0070.04516.88
7.0.10.0030.04516.84
7.0.00.0030.04516.83
5.6.380.0000.01314.48
5.6.370.0040.00414.84
5.6.360.0090.00614.46
5.6.350.0070.00714.69
5.6.340.0070.00314.51
5.6.330.0070.00714.22
5.6.320.0060.00314.82
5.6.310.0030.01014.48
5.6.300.0060.00614.57
5.6.290.0000.01114.31
5.6.280.0030.04217.86
5.6.270.0090.00614.40
5.6.260.0080.00414.45
5.6.250.0150.00014.64
5.6.240.0070.04317.51
5.6.230.0150.02317.66
5.6.220.0050.02817.46
5.6.210.0040.03817.57
5.6.200.0070.04217.79
5.6.190.0050.04717.71
5.6.180.0090.04717.68
5.6.170.0110.03617.93
5.6.160.0070.02717.70
5.6.150.0030.04617.67
5.6.140.0060.04317.82
5.6.130.0030.04617.67
5.6.120.0080.04117.74
5.6.110.0070.03717.85
5.6.100.0030.03217.76
5.6.90.0040.04517.77
5.6.80.0020.04517.39
5.6.70.0070.03817.49
5.6.60.0030.04217.44
5.6.50.0080.03817.41
5.6.40.0020.04517.40
5.6.30.0030.04017.42
5.6.20.0050.03317.42
5.6.10.0060.04317.38
5.6.00.0020.03417.49
5.5.380.0110.03615.83
5.5.370.0090.03715.75
5.5.360.0070.03615.86
5.5.350.0070.04215.77
5.5.340.0080.04015.86
5.5.330.0030.04716.04
5.5.320.0000.04715.83
5.5.310.0020.04516.09
5.5.300.0100.03716.07
5.5.290.0080.03315.91
5.5.280.0060.03116.18
5.5.270.0070.03816.07
5.5.260.0100.02015.93
5.5.250.0020.03815.79
5.5.240.0030.03015.59
5.5.230.0050.02715.64
5.5.220.0090.03515.86
5.5.210.0070.03815.64
5.5.200.0040.03115.55
5.5.190.0020.03915.76
5.5.180.0040.04315.71
5.5.170.0070.00014.35
5.5.160.0050.03815.65
5.5.150.0030.03715.63
5.5.140.0000.03315.58
5.5.130.0080.03715.73
5.5.120.0090.03715.57
5.5.110.0070.03915.61
5.5.100.0050.04015.61
5.5.90.0030.03815.55
5.5.80.0030.04015.61
5.5.70.0020.04515.60
5.5.60.0000.03615.69
5.5.50.0070.03815.53
5.5.40.0050.03115.37
5.5.30.0070.03315.54
5.5.20.0050.04715.47
5.5.10.0020.02715.61
5.5.00.0050.03715.54
5.4.450.0100.02515.17
5.4.440.0020.02415.18
5.4.430.0040.04015.34
5.4.420.0050.04015.26
5.4.410.0050.03815.31
5.4.400.0040.02315.17
5.4.390.0050.03815.05
5.4.380.0090.03815.09
5.4.370.0080.03214.96
5.4.360.0030.03314.96
5.4.350.0050.04315.05
5.4.340.0030.03815.04
5.4.330.0090.00011.08
5.4.320.0060.03615.12
5.4.310.0090.03215.07
5.4.300.0010.03815.03
5.4.290.0080.02615.16
5.4.280.0050.04214.99
5.4.270.0080.03615.02
5.4.260.0100.02715.17
5.4.250.0090.03614.95
5.4.240.0030.02615.07
5.4.230.0060.03015.14
5.4.220.0060.04114.92
5.4.210.0040.02515.06
5.4.200.0060.03715.12
5.4.190.0060.02315.04
5.4.180.0030.03014.91
5.4.170.0100.03515.16
5.4.160.0070.03815.20
5.4.150.0070.04015.08
5.4.140.0040.04113.64
5.4.130.0030.03813.74
5.4.120.0080.01813.77
5.4.110.0100.03513.88
5.4.100.0070.03113.72
5.4.90.0070.03813.67
5.4.80.0090.03513.68
5.4.70.0030.03713.65
5.4.60.0030.03613.77
5.4.50.0050.03413.66
5.4.40.0090.01813.68
5.4.30.0060.02713.76
5.4.20.0040.03713.75
5.4.10.0070.03313.51
5.4.00.0050.02513.48
5.3.290.0030.03512.66
5.3.280.0020.04412.62
5.3.270.0030.04112.60
5.3.260.0060.04012.66
5.3.250.0030.02612.59
5.3.240.0030.04012.56
5.3.230.0100.03912.64
5.3.220.0100.02812.54
5.3.210.0060.04012.58
5.3.200.0090.03612.57
5.3.190.0030.03012.56
5.3.180.0060.03612.61
5.3.170.0140.01312.57
5.3.160.0040.03912.52
5.3.150.0080.03812.63
5.3.140.0020.04312.54
5.3.130.0060.04112.49
5.3.120.0060.02912.50
5.3.110.0020.03012.59
5.3.100.0030.02312.31
5.3.90.0040.02812.29
5.3.80.0060.03612.31
5.3.70.0050.02712.31
5.3.60.0060.02012.24
5.3.50.0070.03512.27
5.3.40.0050.04412.29
5.3.30.0110.03112.26
5.3.20.0060.03812.08
5.3.10.0070.03312.11
5.3.00.0050.03812.05
5.2.170.0050.03010.79
5.2.160.0050.03410.89
5.2.150.0020.03410.89
5.2.140.0050.03110.79
5.2.130.0020.03010.76
5.2.120.0030.03510.77
5.2.110.0020.02010.87
5.2.100.0010.02110.85
5.2.90.0030.03110.79
5.2.80.0030.01710.83
5.2.70.0060.03310.77
5.2.60.0020.03510.83
5.2.50.0060.03310.84
5.2.40.0050.03310.73
5.2.30.0050.03210.78
5.2.20.0030.02010.80
5.2.10.0040.02010.77
5.2.00.0070.03010.69
5.1.60.0060.02610.45
5.1.50.0000.02610.45
5.1.40.0030.02510.45
5.1.30.0040.02710.45
5.1.20.0060.02210.50
5.1.10.0030.02810.45
5.1.00.0040.02810.45
5.0.50.0050.01810.45
5.0.40.0040.02210.45
5.0.30.0050.02010.45
5.0.20.0030.01310.45
5.0.10.0050.02010.45
5.0.00.0020.03310.45
4.4.90.0000.01410.45
4.4.80.0000.02210.45
4.4.70.0030.01610.45
4.4.60.0050.01310.45
4.4.50.0030.01810.45
4.4.40.0030.02710.45
4.4.30.0030.01810.45
4.4.20.0020.01510.45
4.4.10.0010.01410.45
4.4.00.0030.01810.45
4.3.110.0020.02010.45
4.3.100.0040.00910.45
4.3.90.0020.01810.45
4.3.80.0010.01310.45
4.3.70.0050.01210.45
4.3.60.0020.01910.45
4.3.50.0020.01210.45
4.3.40.0020.01410.45
4.3.30.0020.01610.45
4.3.20.0020.00910.45
4.3.10.0010.01910.45
4.3.00.0040.01810.45

preferences:
50.09 ms | 400 KiB | 5 Q