3v4l.org

run code in 300+ PHP versions simultaneously
<?php //just for testing purposes $sunday11am = strtotime("2016-02-07 11:00:00"); //sunday 11am $sunday11pm = strtotime("2016-02-07 23:00:00"); //sunday 11pm //test with sunday morning $next = (date('N', $sunday11am) == '7' && date('h', $sunday11am) < 22 ? 'this' : 'next'); echo "Sunday Morning: ". date('F jS', strtotime("$next Sunday", $sunday11am)) ."\n"; $next = (date('N', $sunday11pm) == '7' && date('h', $sunday11pm) < 22 ? 'this' : 'next'); echo "Sunday Evening: ". date('F jS', strtotime("$next Sunday")) ."\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.5.20.0110.00620.24
8.5.10.0120.00520.27
8.5.00.0150.00620.30
8.4.170.0190.01020.38
8.4.160.0120.00923.98
8.4.150.0000.00214.05
8.4.140.0110.01017.72
8.4.130.0120.00818.57
8.4.120.0120.00720.45
8.4.110.0140.00718.66
8.4.100.0140.00618.12
8.4.90.0110.00918.84
8.4.80.0120.00819.55
8.4.70.0080.00818.06
8.4.60.0110.01020.43
8.4.50.0130.00919.69
8.4.40.0160.00319.39
8.4.30.0120.00418.00
8.4.20.0080.00017.95
8.4.10.0110.00017.86
8.3.300.0130.00821.00
8.3.290.0090.01121.00
8.3.280.0150.01018.75
8.3.270.0110.00916.73
8.3.260.0030.00616.50
8.3.250.0100.00918.95
8.3.240.0110.00816.76
8.3.230.0100.00716.46
8.3.220.0050.00217.39
8.3.210.0100.00916.73
8.3.200.0060.00316.83
8.3.190.0110.00416.98
8.3.180.0140.00516.66
8.3.170.0040.00416.59
8.3.160.0090.00918.50
8.3.150.0090.00918.84
8.3.140.0080.00016.72
8.3.130.0090.00618.25
8.3.120.0040.00420.89
8.3.110.0000.00920.94
8.3.100.0070.00716.62
8.3.90.0100.01026.77
8.3.80.0060.00317.97
8.3.70.0140.00718.28
8.3.60.0040.01918.68
8.3.50.0300.01122.03
8.3.40.0110.00718.71
8.3.30.0040.01118.84
8.3.20.0070.00020.25
8.3.10.0040.00420.66
8.3.00.0030.00520.52
8.2.300.0090.01222.23
8.2.290.0110.00820.36
8.2.280.0120.00618.64
8.2.270.0110.00717.44
8.2.260.0090.00018.82
8.2.250.0060.00317.06
8.2.240.0050.00518.83
8.2.230.0060.00322.58
8.2.220.0070.00424.06
8.2.210.0080.00026.77
8.2.200.0000.00916.75
8.2.190.0080.01517.02
8.2.180.0150.00416.60
8.2.170.0090.00622.96
8.2.160.0040.01120.39
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0120.00626.16
8.2.120.0040.00419.81
8.2.110.0030.00719.27
8.2.100.0080.00418.05
8.2.90.0050.00319.34
8.2.80.0060.00817.97
8.2.70.0020.00648.54
8.2.60.0090.00548.66
8.2.50.0080.00548.71
8.2.40.0060.00749.96
8.2.30.0090.00449.41
8.2.20.0040.00448.66
8.2.10.0100.00448.70
8.2.00.0040.00848.73
8.1.340.0150.00617.85
8.1.330.0120.00621.78
8.1.320.0120.00716.31
8.1.310.0060.00318.73
8.1.300.0100.00016.19
8.1.290.0000.00930.84
8.1.280.0090.00625.92
8.1.270.0060.00323.95
8.1.260.0090.00026.35
8.1.250.0020.00528.09
8.1.240.0060.00322.79
8.1.230.0040.00817.70
8.1.220.0000.00817.76
8.1.210.0000.00818.77
8.1.200.0040.00548.47
8.1.190.0080.00548.40
8.1.180.0050.00748.71
8.1.170.0080.00649.08
8.1.160.0060.00750.21
8.1.150.0030.01049.20
8.1.140.0060.00849.56
8.1.130.0070.00648.54
8.1.120.0070.00448.53
8.1.110.0050.00748.51
8.1.100.0050.00748.53
8.1.90.0100.00248.51
8.1.80.0060.00648.56
8.1.70.0050.00748.53
8.1.60.0100.00348.54
8.1.50.0080.00648.51
8.1.40.0100.00348.54
8.1.30.0060.00748.55
8.1.20.0100.00448.54
8.1.10.0110.00248.46
8.1.00.0090.00548.49
8.0.300.0080.00018.77
8.0.290.0080.00548.16
8.0.280.0060.00648.94
8.0.270.0060.00648.37
8.0.260.0060.00548.37
8.0.250.0080.00548.29
8.0.240.0090.00348.31
8.0.230.0060.00648.29
8.0.220.0050.00748.24
8.0.210.0090.00248.25
8.0.200.0080.00448.28
8.0.190.0090.00348.24
8.0.180.0120.00048.24
8.0.170.0110.00148.27
8.0.160.0100.00448.22
8.0.150.0100.00548.19
8.0.140.0080.00448.24
8.0.130.0060.00546.42
8.0.120.0080.00448.23
8.0.110.0070.00548.28
8.0.100.0080.00448.18
8.0.90.0100.00348.25
8.0.80.0090.00648.28
8.0.70.0080.00448.20
8.0.60.0110.00148.19
8.0.50.0070.00548.23
8.0.30.0100.01038.02
8.0.20.0120.01132.90
8.0.10.0120.00048.25
8.0.00.0120.00732.56
7.4.330.0060.00248.05
7.4.320.0070.00448.02
7.4.300.0090.00348.04
7.4.290.0020.00948.00
7.4.280.0060.00548.02
7.4.270.0120.00048.08
7.4.260.0090.00348.09
7.4.250.0070.00648.01
7.4.240.0060.00648.08
7.4.230.0080.00348.01
7.4.220.0110.00648.07
7.4.210.0110.00437.62
7.4.200.0090.00148.12
7.4.190.0050.01079.33
7.4.180.0110.00679.33
7.4.160.0110.00547.99
7.4.150.0080.01148.37
7.4.140.0140.00638.35
7.4.130.0070.01037.74
7.4.120.0120.00637.56
7.4.110.0110.00547.98
7.4.100.0120.00647.91
7.4.90.0140.00248.07
7.4.80.0130.00549.36
7.4.70.0080.00848.05
7.4.60.0120.00548.06
7.4.50.0100.00548.11
7.4.40.0110.00548.02
7.4.30.0120.00748.05
7.4.20.0090.00579.33
7.4.10.0120.00279.33
7.4.00.0070.01047.13
7.3.330.0070.00446.27
7.3.320.0100.00046.33
7.3.310.0050.00547.92
7.3.300.0050.00547.90
7.3.290.0070.00447.85
7.3.280.0090.01032.20
7.3.270.0050.01048.37
7.3.260.0120.00548.04
7.3.250.0120.00632.35
7.3.240.0080.00837.48
7.3.230.0110.00747.99
7.3.220.0120.00379.33
7.3.210.0110.00848.12
7.3.200.0150.00249.36
7.3.190.0110.00547.90
7.3.180.0110.00647.95
7.3.170.0090.00848.00
7.3.160.0070.01047.92
7.3.150.0120.00879.33
7.3.140.0100.01079.33
7.3.130.0130.00479.33
7.3.120.0060.00847.08
7.3.110.0080.00447.14
7.3.100.0080.00647.21
7.3.90.0110.00347.15
7.3.80.0050.01147.28
7.3.70.0090.00547.23
7.3.60.0050.00947.15
7.3.50.0110.00547.17
7.3.40.0090.00647.16
7.3.30.0120.00247.18
7.3.20.0110.00548.13
7.3.10.0110.00548.09
7.3.00.0100.00648.15
7.2.340.0080.00879.33
7.2.330.0120.00448.15
7.2.320.0100.01648.16
7.2.310.0090.00748.16
7.2.300.0100.00647.96
7.2.290.0140.00348.03
7.2.280.0120.00379.33
7.2.270.0150.00079.33
7.2.260.0110.00479.33
7.2.250.0080.00647.29
7.2.240.0110.00347.30
7.2.230.0090.00547.24
7.2.220.0100.00447.32
7.2.210.0110.00347.37
7.2.200.0070.00947.31
7.2.190.0040.00747.27
7.2.180.0080.00747.18
7.2.170.0070.00747.16
7.2.160.0050.00647.34
7.2.150.0100.00848.25
7.2.140.0090.00848.21
7.2.130.0070.00748.26
7.2.120.0140.00048.23
7.2.110.0130.00537.76
7.2.100.0100.00648.15
7.2.90.0110.00448.28
7.2.80.0090.00448.21
7.2.70.0090.00648.27
7.2.60.0050.00837.82
7.2.50.0070.00748.25
7.2.40.0090.00648.25
7.2.30.0030.01348.26
7.2.20.0050.01148.13
7.2.10.0100.00348.29
7.2.00.0100.00448.27
7.1.330.0090.00547.61
7.1.320.0040.00947.68
7.1.310.0090.00547.65
7.1.300.0040.00847.58
7.1.290.0080.00747.57
7.1.280.0080.00447.59
7.1.270.0070.00747.69
7.1.260.0090.00647.47
7.1.250.0080.00647.65
7.1.240.0110.00479.33
7.1.230.0110.00479.33
7.1.220.0100.00579.33
7.1.210.0090.00679.33
7.1.200.0110.00347.54
7.1.190.0120.00379.33
7.1.180.0110.00479.33
7.1.170.0110.00479.33
7.1.160.0130.00379.33
7.1.150.0090.00679.33
7.1.140.0120.00279.33
7.1.130.0090.00679.33
7.1.120.0080.00679.33
7.1.110.0140.00679.33
7.1.100.0170.00079.33
7.1.90.0150.00079.33
7.1.80.0050.01079.33
7.1.70.0120.00448.34
7.1.60.0090.00549.55
7.1.50.0100.00579.33
7.1.40.0090.00679.33
7.1.30.0120.00279.33
7.1.20.0100.00579.33
7.1.10.0110.00479.33
7.1.00.0090.03850.88
7.0.330.0090.00679.33
7.0.320.0100.00379.33
7.0.310.0160.00079.33
7.0.300.0070.00779.33
7.0.290.0110.00379.33
7.0.280.0070.00779.33
7.0.270.0110.00479.33
7.0.260.0090.00579.33
7.0.250.0100.00579.33
7.0.240.0070.00779.33
7.0.230.0150.00079.33
7.0.220.0100.00379.33
7.0.210.0050.01079.33
7.0.200.0060.00648.12
7.0.190.0110.00479.33
7.0.180.0150.00079.33
7.0.170.0090.00679.33
7.0.160.0110.00379.33
7.0.150.0110.00379.33
7.0.140.0040.01179.33
7.0.130.0140.00079.33
7.0.120.0100.00379.33
7.0.110.0100.00379.33
7.0.100.0090.00579.33
7.0.90.0110.00479.33
7.0.80.0290.02849.65
7.0.70.0350.03849.68
7.0.60.0090.03149.70
7.0.50.0170.02549.78
7.0.40.0070.02649.68
7.0.30.0080.02449.70
7.0.20.0160.03549.74
7.0.10.0060.04649.73
7.0.00.0090.02049.66
5.6.400.0120.00079.33
5.6.390.0110.00379.33
5.6.380.0070.00779.33
5.6.370.0000.01379.33
5.6.360.0080.00579.33
5.6.350.0120.00079.33
5.6.340.0110.00279.33
5.6.330.0040.00979.33
5.6.320.0040.00979.33
5.6.310.0140.00079.33
5.6.300.0110.00379.33
5.6.290.0170.00079.33
5.6.280.0060.03850.16
5.6.270.0070.00779.33
5.6.260.0070.00779.33
5.6.250.0130.00079.33
5.6.240.0090.00579.33
5.6.230.0100.04349.91
5.6.220.0070.02349.97
5.6.210.0100.02750.04
5.6.200.0100.02050.17
5.6.190.0060.02350.16
5.6.180.0090.04150.19
5.6.170.0060.03850.18
5.6.160.0080.01750.25
5.6.150.0060.02050.22
5.6.140.0050.02250.21
5.6.130.0070.02850.23
5.6.120.0080.01950.17
5.6.110.0060.02150.18
5.6.100.0050.03050.20
5.6.90.0100.02050.17
5.6.80.0080.02049.94
5.6.70.0130.03249.87
5.6.60.0070.02349.87
5.6.50.0080.01949.89
5.6.40.0090.02049.81
5.6.30.0080.02049.82
5.6.20.0080.02249.85
5.6.10.0080.02149.88
5.6.00.0090.01949.81
5.5.380.0070.00779.33
5.5.370.0060.02449.89
5.5.360.0020.02749.88
5.5.350.0080.02249.87
5.5.340.0080.02350.05
5.5.330.0100.02250.03
5.5.320.0070.02150.13
5.5.310.0120.02050.02
5.5.300.0060.02249.98
5.5.290.0070.02350.05
5.5.280.0070.02350.12
5.5.270.0100.01750.09
5.5.260.0040.04050.05
5.5.250.0050.02349.97
5.5.240.0080.01849.75
5.5.230.0060.02549.67
5.5.220.0030.02249.75
5.5.210.0100.01849.67
5.5.200.0120.03049.80
5.5.190.0020.02949.76
5.5.180.0060.02049.81
5.5.170.0090.00479.33
5.5.160.0050.02449.79
5.5.150.0110.01749.77
5.5.140.0080.01649.80
5.5.130.0100.02749.80
5.5.120.0040.02449.78
5.5.110.0100.02349.72
5.5.100.0080.03049.71
5.5.90.0040.02149.66
5.5.80.0060.02149.72
5.5.70.0090.01949.72
5.5.60.0020.02449.69
5.5.50.0090.01849.68
5.5.40.0080.01649.64
5.5.30.0040.03049.69
5.5.20.0090.01749.61
5.5.10.0080.02249.71
5.5.00.0070.02349.72

preferences:
32.74 ms | 403 KiB | 5 Q