3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dates = array("2013-12-24","2013-12-25","2014-12-24","2013-12-27"); $start = strtotime('2013-12-25'); $end = strtotime('2013-12-26'); foreach($dates AS $date) { $timestamp = strtotime($date); if($timestamp >= $start && $timestamp <= $end) { echo "The date $date is within our date range\n"; } else { echo "The date $date 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.4.10.0100.01017.80
8.3.140.0060.01216.57
8.3.130.0110.00418.39
8.3.120.0150.00318.97
8.3.110.0060.00316.75
8.3.100.0080.00024.06
8.3.90.0040.00426.77
8.3.80.0060.00319.36
8.3.70.0090.00918.54
8.3.60.0000.01416.63
8.3.50.0050.01521.98
8.3.40.0110.00318.96
8.3.30.0100.00319.00
8.3.20.0060.00320.13
8.3.10.0080.00023.60
8.3.00.0040.00419.56
8.2.250.0080.00018.59
8.2.240.0060.01318.78
8.2.230.0150.00320.94
8.2.220.0040.01237.54
8.2.210.0070.00726.77
8.2.200.0080.00418.88
8.2.190.0090.00616.75
8.2.180.0150.00416.50
8.2.170.0110.00419.13
8.2.160.0170.00322.96
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0090.00026.16
8.2.120.0040.00421.07
8.2.110.0040.00420.35
8.2.100.0040.00817.91
8.2.90.0000.00819.15
8.2.80.0000.00817.97
8.2.70.0050.00317.75
8.2.60.0040.00818.02
8.2.50.0000.00818.07
8.2.40.0040.00418.28
8.2.30.0070.00318.19
8.2.20.0000.00817.75
8.2.10.0080.00018.20
8.2.00.0040.00517.92
8.1.300.0050.00316.66
8.1.290.0060.00630.84
8.1.280.0110.00325.92
8.1.270.0030.00523.97
8.1.260.0090.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00622.00
8.1.230.0100.00022.11
8.1.220.0070.00317.79
8.1.210.0050.00318.77
8.1.200.0060.00617.48
8.1.190.0040.00417.48
8.1.180.0040.00418.10
8.1.170.0000.00918.73
8.1.160.0000.00721.90
8.1.150.0040.00418.81
8.1.140.0040.00417.68
8.1.130.0000.00917.59
8.1.120.0070.00217.55
8.1.110.0060.00317.67
8.1.100.0090.00017.67
8.1.90.0050.00417.57
8.1.80.0020.00617.58
8.1.70.0030.00517.65
8.1.60.0030.00617.68
8.1.50.0020.00617.68
8.1.40.0060.00217.70
8.1.30.0050.00317.72
8.1.20.0010.00617.70
8.1.10.0060.00417.96
8.1.00.0040.00417.58
8.0.300.0000.00718.77
8.0.290.0000.00716.88
8.0.280.0040.00418.58
8.0.270.0030.00317.37
8.0.260.0000.00716.95
8.0.250.0020.00516.99
8.0.240.0060.00217.08
8.0.230.0050.00217.08
8.0.220.0020.00616.98
8.0.210.0030.00417.03
8.0.200.0010.00617.00
8.0.190.0030.00517.11
8.0.180.0060.00217.07
8.0.170.0020.00617.04
8.0.160.0060.00217.02
8.0.150.0020.00616.86
8.0.140.0090.00316.99
8.0.130.0040.00315.13
8.0.120.0010.00617.02
8.0.110.0010.00616.97
8.0.100.0040.00416.90
8.0.90.0030.00417.00
8.0.80.0020.01117.05
8.0.70.0040.00416.93
8.0.60.0050.00217.00
8.0.50.0030.00517.02
8.0.30.0060.00917.14
8.0.20.0090.00717.24
8.0.10.0170.00617.02
8.0.00.0140.00717.15
7.4.330.0060.00115.41
7.4.320.0070.00716.61
7.4.300.0080.00516.62
7.4.290.0110.00216.53
7.4.280.0130.00116.55
7.4.270.0030.01016.67
7.4.260.0050.00716.57
7.4.250.0070.00416.65
7.4.240.0080.00216.69
7.4.230.0070.00516.67
7.4.220.0080.00816.64
7.4.210.0080.00716.61
7.4.200.0050.00516.69
7.4.190.0070.00716.60
7.4.180.0110.00316.52
7.4.160.0130.00316.60
7.4.150.0140.00216.91
7.4.140.0140.01117.00
7.4.130.0120.01016.60
7.4.120.0150.00816.60
7.4.110.0170.00816.49
7.4.100.0140.00716.58
7.4.90.0170.00516.57
7.4.80.0160.00817.24
7.4.70.0170.00716.65
7.4.60.0150.00716.56
7.4.50.0140.00816.51
7.4.40.0160.00516.48
7.4.30.0180.00516.55
7.4.20.0140.00716.54
7.4.10.0110.01016.53
7.4.00.0080.00716.34
7.3.330.0050.00514.79
7.3.320.0040.00614.89
7.3.310.0070.00416.41
7.3.300.0020.00916.37
7.3.290.0070.00916.44
7.3.280.0110.00716.41
7.3.270.0080.00716.81
7.3.260.0140.01016.58
7.3.250.0130.00816.49
7.3.240.0170.00516.45
7.3.230.0130.01016.47
7.3.220.0170.00716.43
7.3.210.0130.00916.39
7.3.200.0130.01117.18
7.3.190.0160.00716.45
7.3.180.0150.00716.46
7.3.170.0160.00616.52
7.3.160.0170.00716.49
7.3.150.0140.00916.47
7.3.140.0120.01016.48
7.3.130.0140.00716.52
7.3.120.0100.00916.13
7.3.110.0130.00816.24
7.3.100.0120.00915.93
7.3.90.0120.00715.96
7.3.80.0100.01015.84
7.3.70.0110.00815.84
7.3.60.0100.00915.80
7.3.50.0120.00815.82
7.3.40.0120.00715.81
7.3.30.0100.00815.78
7.3.20.0120.00715.98
7.3.10.0130.00815.96
7.3.00.0130.00715.98
7.2.340.0140.00916.75
7.2.330.0150.00716.74
7.2.320.0130.00916.63
7.2.310.0170.00516.73
7.2.300.0140.00816.53
7.2.290.0150.00716.71
7.2.280.0170.00516.57
7.2.270.0140.00716.71
7.2.260.0150.00716.70
7.2.250.0140.01016.42
7.2.240.0130.00916.47
7.2.230.0120.01016.13
7.2.220.0130.00916.15
7.2.210.0100.00916.06
7.2.200.0120.00915.99
7.2.190.0120.00816.00
7.2.180.0130.00715.98
7.2.170.0130.00715.98
7.2.160.0140.00716.05
7.2.150.0140.00816.23
7.2.140.0130.00916.21
7.2.130.0140.00816.28
7.2.120.0130.00916.21
7.2.110.0130.00916.21
7.2.100.0130.00816.23
7.2.90.0130.00816.27
7.2.80.0150.00716.23
7.2.70.0150.00716.14
7.2.60.0180.00916.30
7.2.50.0140.00916.24
7.2.40.0170.00616.21
7.2.30.0130.00816.15
7.2.20.0150.01016.22
7.2.10.0160.00616.20
7.2.00.0130.00916.47
7.1.330.0170.00715.77
7.1.320.0130.00815.37
7.1.310.0160.00715.22
7.1.300.0130.00815.11
7.1.290.0130.00815.03
7.1.280.0170.00715.12
7.1.270.0140.00915.12
7.1.260.0200.00715.06
7.1.250.0130.00715.16
7.1.240.0270.00915.07
7.1.230.0190.00715.12
7.1.220.0120.00915.03
7.1.210.0130.00915.05
7.1.200.0140.00715.14
7.1.190.0130.00915.07
7.1.180.0170.00815.06
7.1.170.0150.01015.08
7.1.160.0150.00715.12
7.1.150.0130.00915.01
7.1.140.0130.00815.12
7.1.130.0120.00915.10
7.1.120.0160.00915.09
7.1.110.0170.00815.06
7.1.100.0120.01015.35
7.1.90.0150.00715.17
7.1.80.0140.00615.16
7.1.70.0150.00815.35
7.1.60.0150.00615.30
7.1.50.0140.00715.37
7.1.40.0160.00815.28
7.1.30.0130.00815.30
7.1.20.0130.00915.25
7.1.10.0130.00715.24
7.1.00.0130.00815.23
7.0.330.0140.00814.75
7.0.320.0180.00714.78
7.0.310.0110.00914.70
7.0.300.0150.00714.71
7.0.290.0150.00614.67
7.0.280.0170.00814.67
7.0.270.0140.00814.69
7.0.260.0220.01214.71
7.0.250.0120.00914.74
7.0.240.0200.00814.77
7.0.230.0150.00614.77
7.0.220.0110.01014.81
7.0.210.0140.00814.78
7.0.200.0140.00715.00
7.0.190.0150.00814.91
7.0.180.0120.00914.91
7.0.170.0160.00814.95
7.0.160.0120.00814.90
7.0.150.0120.00814.91
7.0.140.0130.00814.91
7.0.130.0120.00814.89
7.0.120.0130.00714.94
7.0.110.0100.00914.89
7.0.100.0110.00814.88
7.0.90.0100.00814.86
7.0.80.0140.00814.84
7.0.70.0130.00714.87
7.0.60.0120.00714.93
7.0.50.0110.00914.93
7.0.40.0150.00814.75
7.0.30.0140.00714.76
7.0.20.0130.00614.75
7.0.10.0120.00814.78
7.0.00.0130.00714.74
5.6.400.0130.01015.35
5.6.390.0140.00915.30
5.6.380.0130.00915.32
5.6.370.0140.00915.29
5.6.360.0120.01015.29
5.6.350.0150.01115.32
5.6.340.0140.00715.32
5.6.330.0110.01115.26
5.6.320.0140.00815.33
5.6.310.0110.01015.32
5.6.300.0120.01715.75
5.6.290.0130.01015.79
5.6.280.0120.01215.76
5.6.270.0120.01215.75
5.6.260.0100.01415.79
5.6.250.0120.01115.68
5.6.240.0120.01215.77
5.6.230.0120.01015.70
5.6.220.0130.01015.71
5.6.210.0100.01415.64
5.6.200.0110.01215.74
5.6.190.0100.01315.70
5.6.180.0110.01315.77
5.6.170.0130.01315.70
5.6.160.0130.01015.74
5.6.150.0120.01115.70
5.6.140.0130.01315.66
5.6.130.0110.01415.73
5.6.120.0120.01415.77
5.6.110.0120.01115.75
5.6.100.0130.01015.69
5.6.90.0120.01115.74
5.6.80.0130.01015.58
5.6.70.0120.01615.59
5.6.60.0120.01115.57
5.6.50.0120.01315.56
5.6.40.0100.01315.61
5.6.30.0110.01315.54
5.6.20.0120.01215.57
5.6.10.0120.01115.58
5.6.00.0090.01515.52
5.5.380.0120.01115.45
5.5.370.0130.01115.50
5.5.360.0140.01115.46
5.5.350.0120.01215.44
5.5.340.0130.01015.47
5.5.330.0130.01115.52
5.5.320.0130.01215.53
5.5.310.0140.01015.50
5.5.300.0120.01415.44
5.5.290.0130.01315.49
5.5.280.0120.01315.48
5.5.270.0130.01115.42
5.5.260.0120.01315.41
5.5.250.0150.01115.41
5.5.240.0120.01215.33
5.5.230.0110.01315.36
5.5.220.0120.01115.31
5.5.210.0110.01315.32
5.5.200.0120.01315.34
5.5.190.0120.01215.25
5.5.180.0130.01415.23
5.5.170.0130.01015.11
5.5.160.0120.01215.30
5.5.150.0140.01015.29
5.5.140.0130.01115.30
5.5.130.0130.01215.35
5.5.120.0110.01415.37
5.5.110.0110.01215.23
5.5.100.0140.01015.36
5.5.90.0140.01215.30
5.5.80.0160.01015.34
5.5.70.0160.01215.34
5.5.60.0150.01115.32
5.5.50.0140.01215.26
5.5.40.0120.01215.36
5.5.30.0120.01315.29
5.5.20.0120.01115.27
5.5.10.0150.01115.33
5.5.00.0150.01115.29
5.4.450.0090.01212.75
5.4.440.0120.01112.81
5.4.430.0100.00812.80
5.4.420.0090.01112.80
5.4.410.0100.00912.81
5.4.400.0100.00912.73
5.4.390.0100.01112.69
5.4.380.0100.00912.73
5.4.370.0090.01012.73
5.4.360.0090.01012.75
5.4.350.0110.00812.66
5.4.340.0100.01012.69
5.4.330.0110.00712.16
5.4.320.0110.00912.71
5.4.310.0110.00712.67
5.4.300.0100.00912.73
5.4.290.0100.00912.67
5.4.280.0090.01012.65
5.4.270.0090.00912.67
5.4.260.0090.01012.69
5.4.250.0120.00812.63
5.4.240.0110.01012.70
5.4.230.0100.00912.60
5.4.220.0100.00812.68
5.4.210.0110.00812.67
5.4.200.0090.01012.67
5.4.190.0070.01212.70
5.4.180.0090.00912.62
5.4.170.0090.01012.69
5.4.160.0100.00912.73
5.4.150.0090.01012.68
5.4.140.0100.00812.55
5.4.130.0090.00912.48
5.4.120.0140.00812.59
5.4.110.0090.00912.57
5.4.100.0090.00912.55
5.4.90.0090.00912.56
5.4.80.0080.01112.53
5.4.70.0130.00712.50
5.4.60.0110.00812.60
5.4.50.0100.01212.58
5.4.40.0090.00912.52
5.4.30.0110.01112.52
5.4.20.0100.01112.60
5.4.10.0100.01212.55
5.4.00.0120.01012.45
5.3.290.0080.01112.58
5.3.280.0100.01012.53
5.3.270.0110.01012.56
5.3.260.0100.00912.60
5.3.250.0090.01012.55
5.3.240.0080.01112.44
5.3.230.0110.00912.50
5.3.220.0120.00812.31
5.3.210.0110.00712.33
5.3.200.0110.00912.36
5.3.190.0100.00812.43
5.3.180.0110.01112.54
5.3.170.0100.01212.54
5.3.160.0130.00912.52
5.3.150.0130.00812.54
5.3.140.0110.00912.48
5.3.130.0100.00912.42
5.3.120.0130.00812.46
5.3.110.0130.01112.47
5.3.100.0100.00812.41
5.3.90.0110.01212.42
5.3.80.0070.01012.29
5.3.70.0100.00912.29
5.3.60.0080.01012.53
5.3.50.0100.00812.42
5.3.40.0100.00912.41
5.3.30.0080.01112.48
5.3.20.0090.00912.45
5.3.10.0090.00912.19
5.3.00.0080.01012.23

preferences:
34.19 ms | 403 KiB | 5 Q