3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currentDate = date('m/d/Y'); $start = strtotime('01-12-14'); $end = strtotime('02-12-14'); $timestamp = strtotime($currentDate); if($timestamp >= $start && $timestamp <= $end) { echo "The date $currentDate is within our date range\n"; } else { echo "The date $currentDate is NOT within our date range\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.3.60.0140.00018.68
8.3.50.0090.00722.12
8.3.40.0090.00918.69
8.3.30.0110.00418.94
8.3.20.0070.00020.16
8.3.10.0040.00423.65
8.3.00.0040.00421.01
8.2.180.0130.01018.29
8.2.170.0030.01722.96
8.2.160.0140.00020.50
8.2.150.0070.00024.18
8.2.140.0030.00624.66
8.2.130.0000.00726.16
8.2.120.0030.00619.61
8.2.110.0070.00322.26
8.2.100.0110.00019.21
8.2.90.0050.00319.17
8.2.80.0080.00017.97
8.2.70.0070.00317.75
8.2.60.0040.00417.80
8.2.50.0030.00618.07
8.2.40.0030.00519.68
8.2.30.0000.00718.42
8.2.20.0060.00317.88
8.2.10.0000.00718.18
8.2.00.0070.00017.81
8.1.280.0000.01525.92
8.1.270.0000.00823.82
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.01023.82
8.1.230.0030.00719.17
8.1.220.0000.00817.78
8.1.210.0080.00018.77
8.1.200.0100.00017.35
8.1.190.0060.00317.60
8.1.180.0030.00618.10
8.1.170.0050.00518.81
8.1.160.0050.00321.89
8.1.150.0040.00418.84
8.1.140.0030.00517.52
8.1.130.0040.00417.61
8.1.120.0070.00017.63
8.1.110.0030.00517.63
8.1.100.0040.00417.52
8.1.90.0040.00417.72
8.1.80.0000.00717.54
8.1.70.0040.00417.67
8.1.60.0050.00317.69
8.1.50.0040.00417.61
8.1.40.0040.00417.63
8.1.30.0040.00417.77
8.1.20.0080.00017.79
8.1.10.0040.00417.64
8.1.00.0050.00317.53
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.43
8.0.270.0030.00317.33
8.0.260.0030.00316.93
8.0.250.0030.00317.14
8.0.240.0070.00017.12
8.0.230.0000.00717.10
8.0.220.0000.00717.09
8.0.210.0000.00717.14
8.0.200.0060.00017.09
8.0.190.0000.00817.14
8.0.180.0040.00417.05
8.0.170.0040.00417.18
8.0.160.0030.00317.12
8.0.150.0000.00716.91
8.0.140.0100.00017.05
8.0.130.0030.00313.54
8.0.120.0000.00717.04
8.0.110.0040.00417.14
8.0.100.0080.00017.07
8.0.90.0100.00017.04
8.0.80.0100.00717.09
8.0.70.0000.00717.04
8.0.60.0040.00417.08
8.0.50.0040.00416.93
8.0.30.0070.01117.24
8.0.20.0090.01017.40
8.0.10.0000.00817.21
8.0.00.0110.00616.80
7.4.330.0060.00015.03
7.4.320.0000.00616.64
7.4.300.0000.00616.65
7.4.290.0030.00316.73
7.4.280.0000.00716.64
7.4.270.0030.00316.69
7.4.260.0020.00516.75
7.4.250.0040.00416.51
7.4.240.0020.00516.65
7.4.230.0000.00716.73
7.4.220.0080.00916.78
7.4.210.0030.01316.73
7.4.200.0040.00416.71
7.4.160.0140.00316.80
7.4.150.0060.01317.40
7.4.140.0100.00817.86
7.4.130.0090.00916.75
7.4.120.0100.01016.71
7.4.110.0090.00916.48
7.4.100.0090.00916.74
7.4.90.0100.01016.66
7.4.80.0070.01019.39
7.4.70.0060.01116.64
7.4.60.0090.00616.71
7.4.50.0030.00616.73
7.4.40.0090.00916.34
7.4.30.0100.00716.55
7.4.00.0090.00614.87
7.3.330.0000.00613.30
7.3.320.0000.00513.32
7.3.310.0000.00616.36
7.3.300.0000.00616.32
7.3.290.0070.00716.36
7.3.280.0100.00816.39
7.3.270.0040.01217.40
7.3.260.0150.00916.61
7.3.250.0080.00916.61
7.3.240.0060.01016.70
7.3.230.0140.00316.70
7.3.210.0130.01016.59
7.3.200.0120.01519.39
7.3.190.0090.01316.53
7.3.180.0080.00816.47
7.3.170.0100.00716.54
7.3.160.0090.01216.65
7.3.120.0070.00714.98
7.2.330.0090.00916.77
7.2.320.0110.00716.82
7.2.310.0130.00816.83
7.2.300.0090.01816.68
7.2.290.0150.00316.91
7.2.60.0100.00317.04
7.1.200.0170.00315.83
7.1.100.0130.00318.14
7.1.70.0040.00417.31
7.1.60.0040.02119.70
7.1.50.0110.01117.12
7.1.00.0000.08022.45
7.0.200.0030.00517.06
7.0.140.0030.07722.18
7.0.90.0000.08021.70
7.0.80.0100.07021.82
7.0.70.0100.07721.82
7.0.60.0030.08321.73
7.0.50.0000.08722.12
7.0.40.0070.05020.11
7.0.30.0070.07320.15
7.0.20.0070.04020.13
7.0.10.0000.05020.10
7.0.00.0000.05720.13
5.6.280.0070.07020.98
5.6.240.0070.09720.72
5.6.230.0000.04320.59
5.6.220.0030.04320.67
5.6.210.0070.07020.74
5.6.200.0100.07720.95
5.6.190.0070.07720.95
5.6.180.0030.06721.02
5.6.170.0030.08720.95
5.6.160.0030.04020.99
5.6.150.0030.04021.07
5.6.140.0030.04021.16
5.6.130.0070.05721.01
5.6.120.0000.04321.02
5.6.110.0070.04020.93
5.6.100.0030.03321.02
5.6.90.0000.04321.01
5.6.80.0030.04720.46
5.6.70.0030.04020.31
5.6.60.0000.04720.38
5.6.50.0000.04020.50
5.6.40.0070.02720.27
5.6.30.0000.03320.43
5.6.20.0030.03720.34
5.6.10.0100.07020.38
5.6.00.0030.03720.36
5.5.380.0170.07020.34
5.5.370.0000.05720.51
5.5.360.0070.07720.39
5.5.350.0130.07720.42
5.5.340.0130.07320.88
5.5.330.0030.06720.87
5.5.320.0030.08320.88
5.5.310.0030.04720.88
5.5.300.0000.04720.75
5.5.290.0000.04320.62
5.5.280.0070.04020.78
5.5.270.0030.03320.60
5.5.260.0030.04020.87
5.5.250.0030.03320.74
5.5.240.0030.03720.01
5.5.230.0000.04720.16
5.5.220.0070.07720.14
5.5.210.0070.07720.27
5.5.200.0030.05020.11
5.5.190.0000.03720.23
5.5.180.0000.04720.21
5.5.160.0030.03020.17
5.5.150.0030.05020.08
5.5.140.0070.02720.25
5.5.130.0070.05720.16
5.5.120.0000.04020.10
5.5.110.0000.04020.11
5.5.100.0030.04320.10
5.5.90.0070.03320.06
5.5.80.0000.03720.15
5.5.70.0030.03720.05
5.5.60.0000.04020.15
5.5.50.0000.04719.99
5.5.40.0070.03719.93
5.5.30.0000.03720.02
5.5.20.0000.03720.05
5.5.10.0000.04019.97
5.5.00.0030.03720.10
5.4.450.0000.04319.45
5.4.440.0030.03719.35
5.4.430.0070.03319.30
5.4.420.0000.03719.26
5.4.410.0070.03318.98
5.4.400.0000.03319.03
5.4.390.0000.03719.12
5.4.380.0070.03719.05
5.4.370.0070.05019.11
5.4.360.0070.02719.02
5.4.350.0000.03018.95
5.4.340.0070.03018.79
5.4.320.0000.05019.04
5.4.310.0070.03319.05
5.4.300.0000.05019.04
5.4.290.0000.03719.12
5.4.280.0030.03018.90
5.4.270.0030.03018.96
5.4.260.0000.03718.96
5.4.250.0000.06019.05
5.4.240.0000.03719.03
5.4.230.0000.03719.06
5.4.220.0030.02719.04
5.4.210.0000.03319.09
5.4.200.0030.03319.12
5.4.190.0000.04018.79
5.4.180.0100.02319.03
5.4.170.0030.03719.04
5.4.160.0000.03719.07
5.4.150.0000.05019.21
5.4.140.0030.07316.37
5.4.130.0030.05016.27
5.4.120.0030.04016.06
5.4.110.0070.04016.50
5.4.100.0070.04716.31
5.4.90.0000.03716.36
5.4.80.0030.04016.42
5.4.70.0030.06016.34
5.4.60.0070.05316.34
5.4.50.0000.06016.35
5.4.40.0000.05716.43
5.4.30.0070.05716.19
5.4.20.0130.04316.17
5.4.10.0070.07316.18
5.4.00.0030.04015.71
5.3.290.0000.04314.68
5.3.280.0030.06014.58
5.3.270.0000.04714.44
5.3.260.0000.04014.55
5.3.250.0030.03714.59
5.3.240.0070.03314.59
5.3.230.0000.07714.46
5.3.220.0070.07314.56
5.3.210.0070.05314.43
5.3.200.0000.04014.53
5.3.190.0030.03714.56
5.3.180.0030.04014.56
5.3.170.0000.04014.55
5.3.160.0000.04714.54
5.3.150.0030.07314.42
5.3.140.0030.07014.55
5.3.130.0070.07014.55
5.3.120.0070.07714.52
5.3.110.0030.07314.36
5.3.100.0000.05013.89
5.3.90.0030.07313.97
5.3.80.0000.07713.87
5.3.70.0000.05313.77
5.3.60.0030.07313.98
5.3.50.0030.05713.85
5.3.40.0000.04713.93
5.3.30.0000.04013.81
5.3.20.0000.03713.46
5.3.10.0070.05313.65
5.3.00.0100.06713.64
5.2.170.0000.05311.21
5.2.160.0000.05011.00
5.2.150.0030.05711.18
5.2.140.0100.05311.13
5.2.130.0030.04011.09
5.2.120.0030.06011.09
5.2.110.0030.03011.12
5.2.100.0030.05011.12
5.2.90.0030.03010.94
5.2.80.0000.06311.14
5.2.70.0070.05011.13
5.2.60.0070.06010.90
5.2.50.0000.06311.01
5.2.40.0000.06311.03
5.2.30.0030.05710.96
5.2.20.0100.05710.90
5.2.10.0030.06010.90
5.2.00.0070.05710.90
5.1.60.0000.05310.90
5.1.50.0030.05010.90
5.1.40.0030.05010.90
5.1.30.0070.04310.90
5.1.20.0000.04310.90
5.1.10.0030.02310.90
5.1.00.0000.02710.90
5.0.50.0030.04710.90
5.0.40.0000.03710.90
5.0.30.0030.05310.90
5.0.20.0000.04710.90
5.0.10.0000.04310.90
5.0.00.0030.03710.90
4.4.90.0030.03010.90
4.4.80.0000.03310.90
4.4.70.0030.02310.90
4.4.60.0030.03010.90
4.4.50.0000.02710.90
4.4.40.0070.05010.90
4.4.30.0000.03710.90
4.4.20.0000.02010.90
4.4.10.0000.03310.90
4.4.00.0000.02710.90
4.3.110.0000.03710.90
4.3.100.0030.03010.90
4.3.90.0000.02010.90
4.3.80.0000.03010.90
4.3.70.0030.01310.90
4.3.60.0030.03310.90
4.3.50.0030.03310.90
4.3.40.0030.05010.90
4.3.30.0070.02310.90
4.3.20.0000.04010.90
4.3.10.0000.03710.90
4.3.00.0030.03310.90

preferences:
35.26 ms | 401 KiB | 5 Q