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); echo $timestamp; echo "hai"; 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.3.60.0070.00718.06
8.3.50.0110.00822.17
8.3.40.0070.00718.92
8.3.30.0140.00319.05
8.3.20.0000.00720.28
8.3.10.0050.00322.04
8.3.00.0040.00422.55
8.2.180.0110.01116.63
8.2.170.0110.00422.96
8.2.160.0070.00718.95
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0160.00426.16
8.2.120.0030.00519.25
8.2.110.0030.00620.49
8.2.100.0030.00919.61
8.2.90.0040.00419.30
8.2.80.0030.00617.97
8.2.70.0060.00317.63
8.2.60.0040.00818.05
8.2.50.0050.00318.07
8.2.40.0040.00418.16
8.2.30.0050.00517.99
8.2.20.0040.00417.90
8.2.10.0000.00819.73
8.2.00.0070.00017.80
8.1.280.0140.00025.92
8.1.270.0060.00322.07
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0000.00921.18
8.1.230.0080.00417.52
8.1.220.0000.00817.91
8.1.210.0080.00018.77
8.1.200.0030.00717.48
8.1.190.0000.00817.39
8.1.180.0000.00818.84
8.1.170.0040.00418.63
8.1.160.0040.00422.05
8.1.150.0000.00718.89
8.1.140.0030.00617.52
8.1.130.0030.00517.88
8.1.120.0000.00717.69
8.1.110.0060.00317.62
8.1.100.0030.00317.66
8.1.90.0070.00017.61
8.1.80.0000.00817.53
8.1.70.0030.00317.52
8.1.60.0030.00617.69
8.1.50.0000.00817.62
8.1.40.0000.00817.66
8.1.30.0080.00017.65
8.1.20.0000.00817.76
8.1.10.0030.00617.52
8.1.00.0000.00817.60
8.0.300.0020.00518.77
8.0.290.0040.00416.88
8.0.280.0050.00318.46
8.0.270.0030.00317.34
8.0.260.0000.00617.01
8.0.250.0000.00717.13
8.0.240.0000.00817.16
8.0.230.0000.00717.03
8.0.220.0070.00017.09
8.0.210.0030.00316.95
8.0.200.0000.00717.14
8.0.190.0030.00617.04
8.0.180.0040.00417.15
8.0.170.0040.00417.02
8.0.160.0000.00817.06
8.0.150.0070.00017.02
8.0.140.0000.00816.99
8.0.130.0030.00313.47
8.0.120.0050.00217.07
8.0.110.0040.00416.97
8.0.100.0000.00816.94
8.0.90.0040.00417.04
8.0.80.0110.00417.00
8.0.70.0050.00317.03
8.0.60.0000.00717.12
8.0.50.0000.00716.94
8.0.30.0120.00817.16
8.0.20.0070.01117.40
8.0.10.0000.00717.26
8.0.00.0110.01116.92
7.4.330.0000.00515.07
7.4.320.0060.00016.56
7.4.300.0060.00016.71
7.4.290.0070.00016.77
7.4.280.0030.00316.66
7.4.270.0060.00016.63
7.4.260.0000.00716.54
7.4.250.0000.00816.67
7.4.240.0040.00416.66
7.4.230.0040.00416.54
7.4.220.0090.01116.68
7.4.210.0110.00716.66
7.4.200.0000.00716.63
7.4.190.0000.00716.82
7.4.160.0120.01216.60
7.4.150.0120.01317.40
7.4.140.0160.00317.86
7.4.130.0080.01016.66
7.4.120.0130.00816.77
7.4.110.0110.00616.51
7.4.100.0070.01416.64
7.4.90.0150.00916.73
7.4.80.0030.01719.39
7.4.70.0070.01116.63
7.4.60.0090.00916.74
7.4.50.0030.00316.70
7.4.40.0080.00422.77
7.4.30.0180.00016.77
7.4.00.0030.00915.02
7.3.330.0030.00313.43
7.3.320.0000.00513.33
7.3.310.0000.00716.54
7.3.300.0000.00716.45
7.3.290.0090.00916.55
7.3.280.0080.00916.38
7.3.270.0100.00717.40
7.3.260.0090.00916.39
7.3.250.0080.01416.61
7.3.240.0060.01216.40
7.3.230.0030.01416.44
7.3.210.0100.00616.57
7.3.200.0100.00719.39
7.3.190.0100.00616.64
7.3.180.0120.00916.56
7.3.170.0000.01816.45
7.3.160.0000.01516.63
7.3.120.0060.01214.96
7.2.330.0080.00916.70
7.2.320.0090.01516.60
7.2.310.0100.00716.86
7.2.300.0200.00316.84
7.2.290.0120.00317.00
7.2.60.0090.00317.23
7.2.00.0040.01419.34
7.1.200.0080.00816.12
7.1.100.0000.01218.28
7.1.70.0030.00517.39
7.1.60.0070.01819.82
7.1.50.0060.01617.19
7.1.00.0030.07722.30
7.0.200.0040.00817.09
7.0.140.0030.07322.19
7.0.60.0070.05019.91
7.0.50.0100.08017.90
7.0.40.0130.08320.30
7.0.30.0270.04019.98
7.0.20.0300.05020.16
7.0.10.0230.08320.20
7.0.00.0170.06020.08
5.6.280.0000.07321.07
5.6.210.0070.08020.70
5.6.200.0070.03718.13
5.6.190.0170.07720.49
5.6.180.4170.04020.65
5.6.170.0300.06320.46
5.6.160.0130.08020.51
5.6.150.0070.07318.21
5.6.140.0030.08318.11
5.6.130.0130.07018.21
5.6.120.0200.07321.09
5.6.110.0130.07320.98
5.6.100.0030.08720.95
5.6.90.0130.06721.10
5.6.80.0000.04320.50
5.6.70.0300.06320.36
5.5.350.0000.08320.41
5.5.340.0000.04017.93
5.5.330.0070.04020.56
5.5.320.0300.07720.20
5.5.310.0330.08320.32
5.5.300.0070.08317.90
5.5.290.0130.06717.95
5.5.280.0070.08720.96
5.5.270.0070.08320.79
5.5.260.0200.08320.64
5.5.250.0070.07020.57
5.5.240.0070.07720.19
5.4.450.0430.06719.13
5.4.440.0470.06019.48
5.4.430.0130.04719.45
5.4.420.0170.06719.63
5.4.410.0100.05019.39
5.4.400.0830.00018.61
5.4.390.0900.00018.74
5.4.380.0230.05018.51
5.4.370.0470.04318.50
5.4.360.0370.04718.74
5.4.350.0300.06018.52
5.4.340.0300.04718.63
5.4.320.0060.03612.46
5.4.310.0100.04912.46
5.4.300.0050.04012.46
5.4.290.0080.04112.45
5.4.280.0090.04312.35
5.4.270.0070.05018.64
5.4.260.0170.06718.74
5.4.250.0200.04318.77
5.4.240.0130.06018.86
5.4.230.0100.04718.99
5.4.220.0230.04018.97
5.4.210.0130.05318.82
5.4.200.0130.07018.86
5.4.190.0100.07718.74
5.4.180.0030.07318.69
5.4.170.0100.05318.83
5.4.160.0130.06018.77
5.4.150.0100.07318.93
5.4.140.0030.07016.52
5.4.130.0100.04716.31
5.4.120.0130.04716.32
5.4.110.0070.07016.34
5.4.100.0030.07016.30
5.4.90.0000.05716.34
5.4.80.0070.05016.29
5.4.70.0030.07016.19
5.4.60.0130.06716.43
5.4.50.0070.05716.44
5.4.40.0130.06316.33
5.4.30.0030.05716.42
5.4.20.0230.03716.24
5.4.10.0300.05316.28
5.4.00.0170.05715.72
5.3.290.0080.03712.80
5.3.280.0030.07014.29
5.3.270.0000.06314.63
5.3.260.0000.05714.48
5.3.250.0130.06714.30
5.3.240.0100.06714.63
5.3.230.0170.06014.48
5.3.220.0170.06314.59
5.3.210.0070.05014.56
5.3.200.0130.04714.59
5.3.190.0070.05014.26
5.3.180.0100.05014.71
5.3.170.0000.05714.58
5.3.160.0170.04014.48
5.3.150.0070.05014.55
5.3.140.0100.04714.57
5.3.130.0100.04714.54
5.3.120.0100.07014.56
5.3.110.0070.07314.59
5.3.100.0070.05013.88
5.3.90.0130.04314.03
5.3.80.0070.05013.95
5.3.70.0100.04313.88
5.3.60.0100.06313.83
5.3.50.0100.05313.99
5.3.40.0030.05313.64
5.3.30.0070.06713.80
5.3.20.0000.05313.63
5.3.10.0230.05313.59
5.3.00.0070.05013.34
5.2.170.0130.05011.14
5.2.160.0130.03711.16
5.2.150.0030.04311.15
5.2.140.0070.04011.04
5.2.130.0070.03711.02
5.2.120.0130.05010.99
5.2.110.0070.04711.01
5.2.100.0100.04311.02
5.2.90.0100.05310.93
5.2.80.0100.05311.11
5.2.70.0070.05311.01
5.2.60.0000.04710.95
5.2.50.0070.04311.11
5.2.40.0000.04311.01
5.2.30.0070.03710.73
5.2.20.0070.03710.80
5.2.10.0130.03711.09
5.2.00.0070.04010.81
5.1.60.0100.03010.20
5.1.50.0070.0309.99
5.1.40.0130.04310.22
5.1.30.0070.03710.41
5.1.20.0070.03310.43
5.1.10.0030.04710.13
5.1.00.0000.05310.06
5.0.50.0030.0278.59
5.0.40.0070.0238.39
5.0.30.0100.0378.32
5.0.20.0130.0208.27
5.0.10.0070.0238.33
5.0.00.0000.0438.31
4.4.90.0130.0206.83
4.4.80.0070.0276.83
4.4.70.0070.0176.83
4.4.60.0100.0136.83
4.4.50.0000.0236.83
4.4.40.0000.0336.83
4.4.30.0030.0206.83
4.4.20.0000.0236.83
4.4.10.0000.0236.83
4.4.00.0070.0306.83
4.3.110.0030.0206.83
4.3.100.0000.0306.83
4.3.90.0030.0236.83
4.3.80.0130.0336.83
4.3.70.0000.0236.83
4.3.60.0000.0236.83
4.3.50.0100.0236.83
4.3.40.0000.0336.83
4.3.30.0070.0236.83
4.3.20.0030.0206.83
4.3.10.0000.0236.83
4.3.00.0030.0277.39

preferences:
47.41 ms | 401 KiB | 5 Q