3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currentDate = date('01/15/14'); $start = strtotime('01/12/14'); $end = strtotime('02/12/14'); $timestamp = strtotime($currentDate); if($timestamp >= $start && $timestamp <= $end) { echo $currentDate; echo "The date $currentDate is within our date range\n"; } else { echo " timestamp is $timestamp"; echo "start is $start"; echo "end is $end "; 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.0110.00318.56
8.3.50.0240.00522.06
8.3.40.0190.00418.96
8.3.30.0100.01019.27
8.3.20.0050.00320.16
8.3.10.0000.00823.67
8.3.00.0040.00420.77
8.2.180.0180.00316.63
8.2.170.0030.01722.96
8.2.160.0130.00020.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0030.00619.61
8.2.110.0060.00322.07
8.2.100.0080.00319.25
8.2.90.0060.00319.34
8.2.80.0040.00417.97
8.2.70.0070.00317.75
8.2.60.0060.00317.93
8.2.50.0030.00518.07
8.2.40.0080.00020.07
8.2.30.0000.00718.35
8.2.20.0050.00317.96
8.2.10.0040.00418.02
8.2.00.0020.00517.77
8.1.280.0040.01125.92
8.1.270.0000.00723.76
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00323.91
8.1.230.0110.00019.07
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0070.00317.48
8.1.190.0060.00317.35
8.1.180.0050.00318.10
8.1.170.0000.00918.51
8.1.160.0000.00722.08
8.1.150.0050.00218.85
8.1.140.0020.00517.70
8.1.130.0000.00717.90
8.1.120.0040.00417.65
8.1.110.0030.00617.71
8.1.100.0000.00817.71
8.1.90.0000.00817.57
8.1.80.0000.00817.68
8.1.70.0000.00717.59
8.1.60.0040.00417.64
8.1.50.0080.00017.72
8.1.40.0040.00417.63
8.1.30.0040.00417.81
8.1.20.0030.00617.63
8.1.10.0030.00617.73
8.1.00.0000.00717.63
8.0.300.0000.00718.77
8.0.290.0000.00717.00
8.0.280.0000.00718.54
8.0.270.0040.00417.29
8.0.260.0060.00017.34
8.0.250.0000.00717.05
8.0.240.0050.00317.20
8.0.230.0030.00317.27
8.0.220.0030.00317.14
8.0.210.0030.00317.11
8.0.200.0060.00017.15
8.0.190.0040.00417.19
8.0.180.0070.00017.09
8.0.170.0080.00017.03
8.0.160.0000.00817.16
8.0.150.0030.00516.98
8.0.140.0090.00316.97
8.0.130.0060.00013.53
8.0.120.0030.00616.98
8.0.110.0050.00317.07
8.0.100.0040.00417.09
8.0.90.0090.00017.03
8.0.80.0060.01117.04
8.0.70.0000.00816.93
8.0.60.0000.00717.14
8.0.50.0050.00317.15
8.0.30.0090.01017.45
8.0.20.0090.00917.46
8.0.10.0040.00417.32
8.0.00.0090.00916.88
7.4.330.0000.00515.08
7.4.320.0000.00616.66
7.4.300.0000.00616.60
7.4.290.0030.00316.67
7.4.280.0040.00416.74
7.4.270.0080.00016.66
7.4.260.0080.00016.64
7.4.250.0040.00416.63
7.4.240.0050.00216.64
7.4.230.0000.00716.47
7.4.220.0090.00616.83
7.4.210.0110.00316.69
7.4.200.0070.00016.82
7.4.160.0160.00416.65
7.4.150.0060.01217.40
7.4.140.0160.00517.86
7.4.130.0050.01116.64
7.4.120.0050.01216.56
7.4.110.0130.00416.84
7.4.100.0070.01016.54
7.4.90.0100.00616.53
7.4.80.0080.01119.39
7.4.70.0180.00016.74
7.4.60.0000.01816.82
7.4.50.0030.00516.61
7.4.40.0110.00516.86
7.4.30.0060.01116.79
7.4.00.0000.01514.88
7.3.330.0050.00013.29
7.3.320.0000.00613.34
7.3.310.0040.00416.54
7.3.300.0030.00316.40
7.3.290.0000.01416.39
7.3.280.0080.01116.37
7.3.270.0090.00917.40
7.3.260.0070.01016.55
7.3.250.0080.00916.47
7.3.240.0090.00916.49
7.3.230.0100.00716.52
7.3.210.0130.00316.82
7.3.200.0100.00719.39
7.3.190.0100.01016.66
7.3.180.0100.00616.45
7.3.170.0160.00016.52
7.3.160.0040.01116.69
7.3.120.0000.01415.05
7.3.10.0050.00816.77
7.3.00.0050.00616.70
7.2.330.0110.00716.76
7.2.320.0090.00916.89
7.2.310.0120.00916.49
7.2.300.0040.01716.75
7.2.290.0070.01316.90
7.2.130.0080.00617.06
7.2.120.0060.00716.87
7.2.110.0050.01016.87
7.2.100.0060.00716.73
7.2.90.0030.00717.00
7.2.80.0060.00616.85
7.2.70.0040.00916.95
7.2.60.0030.01017.05
7.2.50.0050.00816.84
7.2.40.0050.00717.04
7.2.30.0040.00717.04
7.2.20.0050.00617.00
7.2.10.0030.00817.06
7.2.00.0040.00917.31
7.1.250.0050.00515.91
7.1.240.0030.00515.73
7.1.230.0040.00415.90
7.1.220.0030.01016.00
7.1.210.0030.00616.04
7.1.200.0030.00615.92
7.1.190.0030.00516.01
7.1.180.0050.00315.75
7.1.170.0060.00615.76
7.1.160.0040.00715.95
7.1.150.0100.00316.00
7.1.140.0070.00715.64
7.1.130.0050.00516.02
7.1.120.0040.00815.85
7.1.110.0080.00815.67
7.1.100.0090.01016.95
7.1.90.0120.00015.90
7.1.80.0090.00615.91
7.1.70.0060.00316.56
7.1.60.0110.00717.80
7.1.50.0110.00816.19
7.1.40.0040.00816.11
7.1.30.0060.00915.75
7.1.20.0090.00615.82
7.1.10.0000.01315.74
7.1.00.0050.04019.20
7.0.330.0030.00615.70
7.0.320.0070.00715.34
7.0.310.0000.01115.22
7.0.300.0040.00415.72
7.0.290.0000.01215.35
7.0.280.0040.00815.73
7.0.270.0020.00515.32
7.0.260.0030.01015.38
7.0.250.0000.00815.24
7.0.240.0080.00015.58
7.0.230.0060.00615.50
7.0.220.0030.00715.73
7.0.210.0060.00315.70
7.0.200.0030.00716.21
7.0.190.0030.01215.66
7.0.180.0060.00615.62
7.0.170.0030.00615.54
7.0.160.0000.00915.66
7.0.150.0030.01015.64
7.0.140.0060.04018.81
7.0.130.0060.00615.67
7.0.120.0070.00015.61
7.0.110.0060.00615.55
7.0.100.0090.02717.67
7.0.90.0080.02517.68
7.0.80.0070.04217.78
7.0.70.0030.04217.78
7.0.60.0080.04317.65
7.0.50.0070.03517.92
7.0.40.0060.04116.89
7.0.30.0070.04016.91
7.0.20.0050.04916.78
7.0.10.0050.05016.71
7.0.00.0050.03516.77
5.6.380.0100.00314.59
5.6.370.0060.00314.16
5.6.360.0030.00714.52
5.6.350.0070.00414.30
5.6.340.0030.00914.35
5.6.330.0040.01114.27
5.6.320.0000.01314.30
5.6.310.0090.00614.38
5.6.300.0030.01014.45
5.6.290.0030.00714.57
5.6.280.0020.04117.75
5.6.270.0020.00914.62
5.6.260.0030.00614.39
5.6.250.0100.04417.55
5.6.240.0030.04317.51
5.6.230.0030.03517.57
5.6.220.0120.04017.42
5.6.210.0120.03717.42
5.6.200.0070.03017.66
5.6.190.0060.02917.87
5.6.180.0090.03817.84
5.6.170.0080.04517.89
5.6.160.0050.02717.67
5.6.150.0050.04617.79
5.6.140.0100.04117.78
5.6.130.0040.02717.79
5.6.120.0050.03517.77
5.6.110.0030.02617.89
5.6.100.0060.04517.63
5.6.90.0090.04317.80
5.6.80.0050.04717.40
5.6.70.0120.02017.35
5.6.60.0050.04317.54
5.6.50.0050.03317.46
5.6.40.0100.04117.33
5.6.30.0070.04217.38
5.6.20.0020.02517.54
5.6.10.0050.02817.31
5.6.00.0100.02517.35
5.5.380.0090.04015.83
5.5.370.0120.03715.80
5.5.360.0070.04215.95
5.5.350.0080.04015.80
5.5.340.0030.04716.02
5.5.330.0030.03816.05
5.5.320.0090.04215.97
5.5.310.0030.04315.95
5.5.300.0080.04215.95
5.5.290.0050.02216.05
5.5.280.0000.05016.10
5.5.270.0110.03816.09
5.5.260.0060.02616.04
5.5.250.0070.03815.92
5.5.240.0030.03915.73
5.5.230.0070.02915.69
5.5.220.0120.03315.68
5.5.210.0050.04615.60
5.5.200.0060.03615.70
5.5.190.0060.03515.71
5.5.180.0070.04215.71
5.5.170.0030.00711.18
5.5.160.0030.03815.77
5.5.150.0070.02215.73
5.5.140.0030.04515.66
5.5.130.0020.04515.67
5.5.120.0070.04415.56
5.5.110.0030.03315.63
5.5.100.0030.04115.69
5.5.90.0050.02515.62
5.5.80.0050.04315.64
5.5.70.0030.02815.63
5.5.60.0150.03315.57
5.5.50.0050.03015.66
5.5.40.0020.03715.64
5.5.30.0090.03515.59
5.5.20.0080.03115.60
5.5.10.0040.04215.61
5.5.00.0030.04315.65
5.4.450.0070.04015.39
5.4.440.0050.04315.29
5.4.430.0000.04615.36
5.4.420.0020.02515.28
5.4.410.0050.04415.14
5.4.400.0070.03715.20
5.4.390.0040.02815.15
5.4.380.0030.03815.12
5.4.370.0020.04215.22
5.4.360.0020.04315.20
5.4.350.0050.04115.20
5.4.340.0050.02715.12
5.4.330.0060.00311.18
5.4.320.0050.03015.07
5.4.310.0050.03614.98
5.4.300.0050.04415.25
5.4.290.0080.03215.04
5.4.280.0030.03514.99
5.4.270.0090.03715.07
5.4.260.0020.04214.99
5.4.250.0030.04115.14
5.4.240.0000.03315.16
5.4.230.0050.03715.13
5.4.220.0070.02715.17
5.4.210.0030.04115.12
5.4.200.0030.04014.99
5.4.190.0030.03115.14
5.4.180.0050.04215.10
5.4.170.0050.02915.10
5.4.160.0080.02314.99
5.4.150.0120.03815.23
5.4.140.0080.03213.74
5.4.130.0060.03613.78
5.4.120.0050.03813.65
5.4.110.0040.02513.72
5.4.100.0060.04113.72
5.4.90.0050.03213.78
5.4.80.0080.03313.80
5.4.70.0030.04013.81
5.4.60.0080.02113.70
5.4.50.0070.03613.71
5.4.40.0020.03113.73
5.4.30.0080.03813.73
5.4.20.0030.02413.77
5.4.10.0040.04013.68
5.4.00.0060.03513.42
5.3.290.0050.04312.91
5.3.280.0090.03712.85
5.3.270.0050.04312.82
5.3.260.0050.03012.89
5.3.250.0060.04012.81
5.3.240.0080.03312.82
5.3.230.0050.04012.80
5.3.220.0090.02012.79
5.3.210.0060.04212.87
5.3.200.0020.04212.86
5.3.190.0050.04312.84
5.3.180.0020.04212.84
5.3.170.0080.04012.87
5.3.160.0080.03712.82
5.3.150.0030.04212.85
5.3.140.0030.03512.83
5.3.130.0050.02712.81
5.3.120.0050.02312.79
5.3.110.0100.02012.85
5.3.100.0070.02112.60
5.3.90.0050.03512.57
5.3.80.0110.03012.48
5.3.70.0050.03212.59
5.3.60.0080.03312.58
5.3.50.0080.02012.53
5.3.40.0050.03512.54
5.3.30.0060.02112.49
5.3.20.0030.02312.36
5.3.10.0030.03212.34
5.3.00.0070.03312.38
5.2.170.0030.03211.15
5.2.160.0020.02711.05
5.2.150.0080.02011.18
5.2.140.0050.01711.18
5.2.130.0040.03111.10
5.2.120.0050.02311.04
5.2.110.0020.02011.07
5.2.100.0030.02111.10
5.2.90.0030.02811.14
5.2.80.0060.03011.17
5.2.70.0060.02511.16
5.2.60.0100.03211.10
5.2.50.0030.02511.06
5.2.40.0030.02610.99
5.2.30.0010.03011.07
5.2.20.0000.03111.05
5.2.10.0000.03010.99
5.2.00.0020.02910.96
5.1.60.0050.02810.81
5.1.50.0020.02310.81
5.1.40.0070.02210.81
5.1.30.0020.02810.81
5.1.20.0010.02110.81
5.1.10.0020.02910.81
5.1.00.0030.03110.81
5.0.50.0020.02310.81
5.0.40.0020.02410.81
5.0.30.0000.03110.81
5.0.20.0070.02010.81
5.0.10.0030.02310.81
5.0.00.0030.02210.81
4.4.90.0020.01910.81
4.4.80.0020.01510.81
4.4.70.0020.01810.81
4.4.60.0000.01510.81
4.4.50.0020.02110.81
4.4.40.0010.02310.81
4.4.30.0010.01110.81
4.4.20.0030.01710.81
4.4.10.0070.01310.81
4.4.00.0020.02310.81
4.3.110.0000.02310.81
4.3.100.0020.01310.81
4.3.90.0070.01310.81
4.3.80.0050.02810.81
4.3.70.0020.02010.81
4.3.60.0000.01410.81
4.3.50.0020.01810.81
4.3.40.0000.02310.81
4.3.30.0020.01110.81
4.3.20.0000.01310.81
4.3.10.0030.01910.81
4.3.00.0020.01810.81

preferences:
41.88 ms | 401 KiB | 5 Q