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"; return false; } }

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.0090.00616.75
8.3.50.0110.00818.23
8.3.40.0130.00318.61
8.3.30.0070.00718.97
8.3.20.0090.00021.94
8.3.10.0040.00423.66
8.3.00.0080.00019.68
8.2.180.0100.00716.50
8.2.170.0040.01122.96
8.2.160.0100.00320.53
8.2.150.0000.00824.18
8.2.140.0070.00724.66
8.2.130.0080.00020.43
8.2.120.0080.00026.35
8.2.110.0030.00722.38
8.2.100.0040.00819.77
8.2.90.0040.00419.17
8.2.80.0030.00617.97
8.2.70.0070.00317.88
8.2.60.0040.00418.04
8.2.50.0040.00418.10
8.2.40.0070.00020.35
8.2.30.0000.00719.32
8.2.20.0000.00718.25
8.2.10.0000.00718.16
8.2.00.0040.00418.11
8.1.280.0130.01025.92
8.1.270.0080.00018.86
8.1.260.0060.00326.35
8.1.250.0050.00328.09
8.1.240.0000.01022.73
8.1.230.0040.00717.70
8.1.220.0000.00717.91
8.1.210.0040.00418.77
8.1.200.0070.00317.48
8.1.190.0050.00317.38
8.1.180.0080.00018.10
8.1.170.0000.00918.73
8.1.160.0030.00318.98
8.1.150.0040.00418.87
8.1.140.0000.00819.62
8.1.130.0000.00718.95
8.1.120.0040.00417.55
8.1.110.0000.00917.63
8.1.100.0050.00317.70
8.1.90.0080.00017.46
8.1.80.0050.00317.65
8.1.70.0040.00417.63
8.1.60.0030.00617.69
8.1.50.0000.00817.59
8.1.40.0000.00817.63
8.1.30.0040.00417.74
8.1.20.0040.00417.79
8.1.10.0040.00417.52
8.1.00.0060.00317.59
8.0.300.0110.00019.83
8.0.290.0000.00816.88
8.0.280.0040.00418.51
8.0.270.0030.00317.38
8.0.260.0030.00319.01
8.0.250.0000.00917.16
8.0.240.0030.00517.04
8.0.230.0000.00717.14
8.0.220.0000.00717.05
8.0.210.0040.00417.07
8.0.200.0040.00417.04
8.0.190.0040.00416.99
8.0.180.0040.00416.99
8.0.170.0000.00816.96
8.0.160.0070.00017.16
8.0.150.0050.00317.13
8.0.140.0000.00716.94
8.0.130.0030.00613.40
8.0.120.0000.00717.07
8.0.110.0070.00016.95
8.0.100.0040.00416.96
8.0.90.0040.00417.01
8.0.80.0100.00717.04
8.0.70.0030.00516.96
8.0.60.0000.00816.94
8.0.50.0040.00417.01
8.0.30.0100.00817.14
8.0.20.0110.00717.41
8.0.10.0040.00417.00
8.0.00.0120.00617.09
7.4.330.0000.00615.55
7.4.320.0030.00316.72
7.4.300.0030.00316.64
7.4.290.0100.00016.62
7.4.280.0040.00416.73
7.4.270.0040.00416.71
7.4.260.0070.00016.61
7.4.250.0030.00616.64
7.4.240.0000.00716.62
7.4.230.0070.00016.54
7.4.220.0090.00916.66
7.4.210.0070.01016.80
7.4.200.0000.00716.84
7.4.160.0090.00716.64
7.4.150.0140.00317.40
7.4.140.0140.00417.86
7.4.130.0110.00716.71
7.4.120.0110.00716.67
7.4.110.0100.01016.49
7.4.100.0150.00316.72
7.4.90.0120.00416.75
7.4.80.0100.01019.39
7.4.70.0170.00716.62
7.4.60.0070.01416.66
7.4.50.0060.00616.70
7.4.40.0110.00716.75
7.4.30.0080.00816.55
7.4.10.0100.01015.36
7.4.00.0050.01114.92
7.3.330.0000.00513.37
7.3.320.0000.00513.24
7.3.310.0030.00316.39
7.3.300.0000.00716.36
7.3.290.0080.00716.47
7.3.280.0090.00816.46
7.3.270.0160.00017.40
7.3.260.0170.00316.64
7.3.250.0130.00416.49
7.3.240.0100.00716.54
7.3.230.0150.00416.52
7.3.210.0100.01016.70
7.3.200.0100.00716.55
7.3.190.0030.01316.38
7.3.180.0130.00316.52
7.3.170.0170.00016.50
7.3.160.0060.00916.74
7.3.130.0060.00914.99
7.3.120.0140.00314.97
7.3.110.0120.00614.80
7.3.100.0060.00614.99
7.3.90.0070.00715.11
7.3.80.0030.00814.93
7.3.70.0030.00514.85
7.3.60.0050.00515.13
7.3.50.0070.01014.98
7.3.40.0040.00914.70
7.3.30.0110.00315.16
7.3.20.0030.01316.68
7.3.10.0090.00616.90
7.3.00.0070.01016.99
7.2.330.0130.00316.87
7.2.320.0130.00716.64
7.2.310.0140.00317.00
7.2.300.0090.00916.59
7.2.290.0080.00816.57
7.2.260.0130.00715.46
7.2.250.0070.01015.50
7.2.240.0030.01415.40
7.2.230.0080.00615.22
7.2.220.0060.00615.41
7.2.210.0070.00715.46
7.2.200.0090.00315.34
7.2.190.0060.00915.04
7.2.180.0120.00315.12
7.2.170.0070.01015.04
7.2.160.0060.00815.22
7.2.150.0060.00617.22
7.2.140.0070.01117.12
7.2.130.0030.01417.32
7.2.120.0060.00616.88
7.2.110.0060.00617.04
7.2.100.0060.01017.10
7.2.90.0100.00717.29
7.2.80.0060.00617.19
7.2.70.0080.00616.89
7.2.60.0100.00516.88
7.2.50.0070.01016.82
7.2.40.0060.00617.04
7.2.30.0060.01016.85
7.2.20.0060.00917.15
7.2.10.0040.00416.79
7.2.00.0020.00818.30
7.1.330.0040.00815.68
7.1.320.0070.01016.24
7.1.310.0110.00416.14
7.1.300.0090.00615.58
7.1.290.0080.00615.86
7.1.280.0040.00815.56
7.1.270.0130.00015.84
7.1.260.0060.00615.98
7.1.250.0120.00615.93
7.1.240.0130.00015.88
7.1.230.0080.00615.96
7.1.220.0070.00716.15
7.1.210.0080.00515.81
7.1.200.0110.00415.76
7.1.190.0060.00616.00
7.1.180.0060.00616.00
7.1.170.0030.01015.80
7.1.160.0000.01015.88
7.1.150.0030.01015.91
7.1.140.0030.01015.81
7.1.130.0110.00416.18
7.1.120.0030.00515.89
7.1.110.0030.00616.09
7.1.100.0050.00817.15
7.1.90.0030.01015.91
7.1.80.0070.00716.11
7.1.70.0070.00416.81
7.1.60.0040.00716.66
7.1.50.0050.00816.60
7.1.40.0070.00716.33
7.1.30.0090.00816.44
7.1.20.0020.01316.51
7.1.10.0080.00616.42
7.1.00.0020.00916.42
7.0.330.0050.00315.70
7.0.320.0030.00715.43
7.0.310.0000.00815.63
7.0.300.0040.00415.63
7.0.290.0070.00715.48
7.0.280.0030.00715.59
7.0.270.0080.00615.78
7.0.260.0030.01015.41
7.0.250.0070.00415.53
7.0.240.0030.01315.70
7.0.230.0070.00715.79
7.0.220.0070.00715.54
7.0.210.0070.00415.30
7.0.200.0030.00816.36
7.0.190.0000.01016.13
7.0.180.0030.01116.11
7.0.170.0040.00516.04
7.0.160.0010.00816.04
7.0.150.0030.00716.04
7.0.140.0060.00616.09
7.0.130.0060.00516.19
7.0.120.0010.00816.33
7.0.110.0070.00516.12
7.0.100.0060.00315.84
7.0.90.0040.00816.12
7.0.80.0030.00816.12
7.0.70.0010.01116.13
7.0.60.0090.00116.02
7.0.50.0070.00616.07
7.0.40.0060.00714.24
7.0.30.0060.00614.15
7.0.20.0060.00414.05
7.0.10.0030.00614.13
7.0.00.0020.00814.17
5.6.400.0080.00814.57
5.6.390.0060.00614.45
5.6.380.0080.00014.27
5.6.370.0030.00914.31
5.6.360.0000.01314.28
5.6.350.0040.01114.78
5.6.340.0070.00314.44
5.6.330.0110.00314.57
5.6.320.0040.00714.74
5.6.310.0110.00414.21
5.6.300.0050.00314.68
5.6.290.0040.00714.30
5.6.280.0060.00914.65
5.6.270.0060.00614.59
5.6.260.0070.00314.20
5.6.250.0100.00314.64
5.6.240.0090.00614.43
5.6.230.0060.00914.29
5.6.220.0030.00914.68
5.6.210.0060.00614.40
5.6.200.0040.01514.37
5.6.190.0150.00014.73
5.6.180.0000.01414.43
5.6.170.0080.00814.44
5.6.160.0030.00614.58
5.6.150.0000.01414.16
5.6.140.0070.00714.29
5.6.130.0070.00314.37
5.6.120.0070.00414.57
5.6.110.0070.00414.52
5.6.100.0100.00314.46
5.6.90.0000.01014.51
5.6.80.0000.01314.43
5.6.70.0080.00414.43
5.6.60.0040.01114.20
5.6.50.0080.00414.41
5.6.40.0030.00914.16
5.6.30.0140.00014.34
5.6.20.0100.00314.27
5.6.10.0080.00814.34
5.6.00.0090.00314.42

preferences:
78.73 ms | 400 KiB | 5 Q