3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currentDate = date('02/01/Y'); $end_jan = strtotime('01/31/14'); $end_feb = strtotime('02/28/14'); $end_mar = strtotime('03/31/14'); $end_apr = strtotime('04/30/14'); $end_may = strtotime('05/31/14'); $end_jun = strtotime('06/30/14'); $end_jul = strtotime('07/31/14'); $end_aug = strtotime('08/31/14'); $end_sep = strtotime('09/30/14'); $end_oct = strtotime('10/31/14'); $end_nov = strtotime('11/30/14'); $end_dec = strtotime('12/31/14'); $current = strtotime($currentDate); $timestamp = strtotime($currentDate); if($timestamp >= $current && $timestamp <= $end_jan) { echo "The date $currentDate is in January";} elseif($timestamp >= $current && $timestamp <= $end_feb) { echo "The date $currentDate is in February";} elseif($timestamp >= $current && $timestamp <= $end_mar) { echo "The date $currentDate is in March";} elseif($timestamp >= $current && $timestamp <= $end_apr) { echo "The date $currentDate is in April";} elseif($timestamp >= $current && $timestamp <= $end_may) { echo "The date $currentDate is in May";} elseif($timestamp >= $current && $timestamp <= $end_jun) { echo "The date $currentDate is in June";} elseif($timestamp >= $current && $timestamp <= $end_jul) { echo "The date $currentDate is in July";} elseif($timestamp >= $current && $timestamp <= $end_aug) { echo "The date $currentDate is in August";} elseif($timestamp >= $current && $timestamp <= $end_sep) { echo "The date $currentDate is in September";} elseif($timestamp >= $current && $timestamp <= $end_oct) { echo "The date $currentDate is in October";} elseif($timestamp >= $current && $timestamp <= $end_nov) { echo "The date $currentDate is in November";} elseif($timestamp >= $current && $timestamp <= $end_dec) { echo "The date $currentDate is in December";} else { echo "Something has gone wrong!"; }

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.70.0110.01116.88
8.3.60.0090.00618.40
8.3.50.0120.00622.15
8.3.40.0120.00618.93
8.3.30.0040.01119.21
8.3.20.0070.00020.34
8.3.10.0040.00423.48
8.3.00.0000.00820.82
8.2.180.0110.01116.38
8.2.170.0100.01022.96
8.2.160.0100.00320.53
8.2.150.0070.00024.18
8.2.140.0030.00524.66
8.2.130.0080.00826.16
8.2.120.0050.00319.48
8.2.110.0070.00320.32
8.2.100.0060.00617.91
8.2.90.0000.00818.13
8.2.80.0040.00417.97
8.2.70.0030.00617.75
8.2.60.0080.00018.15
8.2.50.0000.00918.07
8.2.40.0000.00819.88
8.2.30.0030.00518.46
8.2.20.0030.00517.81
8.2.10.0000.00718.20
8.2.00.0030.00617.96
8.1.280.0110.00425.92
8.1.270.0060.00323.73
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0040.00422.19
8.1.230.0070.00421.04
8.1.220.0040.00417.74
8.1.210.0000.00818.96
8.1.200.0060.00317.48
8.1.190.0060.00317.47
8.1.180.0090.00018.10
8.1.170.0080.00018.71
8.1.160.0040.00422.00
8.1.150.0040.00418.82
8.1.140.0020.00517.76
8.1.130.0080.00017.93
8.1.120.0000.00717.66
8.1.110.0030.00517.57
8.1.100.0030.00317.65
8.1.90.0030.00317.70
8.1.80.0040.00417.77
8.1.70.0000.00717.63
8.1.60.0000.00917.77
8.1.50.0060.00317.59
8.1.40.0030.00517.61
8.1.30.0060.00317.82
8.1.20.0000.00917.88
8.1.10.0030.00617.64
8.1.00.0000.00817.56
8.0.300.0050.00320.04
8.0.290.0040.00417.00
8.0.280.0030.00318.46
8.0.270.0070.00017.41
8.0.260.0000.00617.42
8.0.250.0030.00317.20
8.0.240.0000.00717.09
8.0.230.0070.00017.22
8.0.220.0030.00317.15
8.0.210.0030.00317.15
8.0.200.0000.00617.11
8.0.190.0040.00417.18
8.0.180.0050.00317.16
8.0.170.0080.00017.18
8.0.160.0000.00717.02
8.0.150.0040.00417.07
8.0.140.0000.01117.10
8.0.130.0030.00313.51
8.0.120.0040.00417.14
8.0.110.0040.00417.01
8.0.100.0080.00017.00
8.0.90.0030.00616.97
8.0.80.0140.00717.00
8.0.70.0000.00716.99
8.0.60.0040.00417.18
8.0.50.0000.00717.18
8.0.30.0080.01017.11
8.0.20.0120.00917.40
8.0.10.0000.00817.35
8.0.00.0080.00916.89
7.4.330.0000.00515.21
7.4.320.0030.00316.81
7.4.300.0040.00416.65
7.4.290.0000.00716.66
7.4.280.0060.00316.76
7.4.270.0030.00316.69
7.4.260.0000.00816.80
7.4.250.0070.00016.65
7.4.240.0020.00716.59
7.4.230.0000.00716.59
7.4.220.0120.00516.81
7.4.210.0090.01216.81
7.4.200.0000.00816.56
7.4.160.0170.00016.69
7.4.150.0100.00717.40
7.4.140.0100.01217.86
7.4.130.0130.00516.67
7.4.120.0100.00716.70
7.4.110.0120.00616.84
7.4.100.0090.00916.71
7.4.90.0130.00316.76
7.4.80.0030.01419.39
7.4.70.0110.00516.68
7.4.60.0030.01416.62
7.4.50.0000.00816.68
7.4.40.0070.01016.61
7.4.30.0130.00316.52
7.4.00.0080.00915.13
7.3.330.0030.00313.23
7.3.320.0000.00513.34
7.3.310.0000.00716.43
7.3.300.0070.00016.45
7.3.290.0080.00816.43
7.3.280.0080.00816.44
7.3.270.0130.00417.40
7.3.260.0140.00316.70
7.3.250.0100.01216.54
7.3.240.0110.00616.48
7.3.230.0110.00516.70
7.3.210.0100.00916.52
7.3.200.0160.00619.39
7.3.190.0030.01516.81
7.3.180.0030.01316.46
7.3.170.0110.00816.40
7.3.160.0100.00616.62
7.3.120.0060.01115.04
7.3.110.0080.00814.92
7.3.100.0050.00915.21
7.3.90.0030.00714.97
7.3.80.0060.00715.11
7.3.70.0060.00814.92
7.3.60.0040.01114.77
7.3.50.0070.00714.91
7.3.40.0070.00814.89
7.3.30.0030.01015.03
7.3.20.0040.01116.81
7.3.10.0070.00416.72
7.3.00.0030.01016.63
7.2.330.0060.01716.57
7.2.320.0070.01016.67
7.2.310.0170.00616.69
7.2.300.0070.01016.83
7.2.290.0090.01216.86
7.2.250.0100.01015.25
7.2.240.0070.00915.18
7.2.230.0080.00515.13
7.2.220.0080.00815.09
7.2.210.0030.01115.16
7.2.200.0050.01115.33
7.2.190.0060.00715.13
7.2.180.0100.00315.29
7.2.170.0050.00915.06
7.2.160.0100.00315.07
7.2.150.0070.01017.12
7.2.140.0040.01116.77
7.2.130.0070.00717.04
7.2.120.0070.01017.05
7.2.110.0070.00716.90
7.2.100.0080.00416.78
7.2.90.0000.01417.20
7.2.80.0040.01216.68
7.2.70.0040.00817.06
7.2.60.0070.01016.80
7.2.50.0060.00916.94
7.2.40.0070.01116.91
7.2.30.0080.00416.96
7.2.20.0100.00716.88
7.2.10.0100.00617.08
7.2.00.0020.01317.79
7.1.330.0050.01115.89
7.1.320.0100.00415.81
7.1.310.0070.00515.98
7.1.300.0050.00815.82
7.1.290.0030.01015.67
7.1.280.0090.00415.86
7.1.270.0050.00615.90
7.1.260.0030.01015.82
7.1.250.0040.01115.95
7.1.100.0140.00318.16
7.1.70.0060.00917.45
7.1.60.0100.01619.70
7.1.50.0000.02117.14
7.1.00.0000.08022.48
7.0.200.0070.01017.04
7.0.140.0000.07722.07
7.0.100.0430.07720.02
7.0.90.0370.08320.02
7.0.80.0330.05019.92
7.0.70.0400.08319.91
7.0.60.0370.07020.00
7.0.50.0400.08020.34
7.0.40.0030.04720.18
7.0.30.0100.07720.07
7.0.20.0030.06319.95
7.0.10.0100.04020.13
7.0.00.0100.05019.99
5.6.280.0000.07321.11
5.6.250.0030.08720.79
5.6.240.0130.05020.52
5.6.230.0070.08720.67
5.6.220.0030.05020.54
5.6.210.0000.04320.77
5.6.200.0000.06021.04
5.6.190.0070.08021.02
5.6.180.0000.05321.09
5.6.170.0070.08721.03
5.6.160.0070.08021.03
5.6.150.0070.05320.95
5.6.140.0070.08321.12
5.6.130.0200.07321.04
5.6.120.0130.04721.18
5.6.110.0030.05020.93
5.6.100.0070.04720.99
5.6.90.0000.08720.93
5.6.80.0030.03720.45
5.6.70.0000.04720.50
5.6.60.0030.06320.33
5.6.50.0070.07720.43
5.6.40.0030.07720.50
5.6.30.0000.04020.40
5.6.20.0070.07720.37
5.6.10.0030.06020.50
5.6.00.0070.08020.45
5.5.380.0100.07320.46
5.5.370.0130.04020.43
5.5.360.0100.08020.41
5.5.350.0030.05020.43
5.5.340.0030.08720.93
5.5.330.0070.08020.94
5.5.320.0100.07720.89
5.5.310.0170.07020.65
5.5.300.0100.08020.92
5.5.290.0100.08020.91
5.5.280.0000.04720.83
5.5.270.0070.08720.88
5.5.260.0100.07720.89
5.5.250.0100.07020.55
5.5.240.0070.08020.13
5.5.230.0170.07020.27
5.5.220.0070.07720.28
5.5.210.0000.07320.30
5.5.200.0100.04020.13
5.5.190.0030.04720.10
5.5.180.0070.04320.13
5.5.160.0100.07320.28
5.5.150.0030.06020.18
5.5.140.0030.05720.18
5.5.130.0070.07320.00
5.5.120.0070.07720.19
5.5.110.0130.06019.99
5.5.100.0030.08320.19
5.5.90.0070.07720.08
5.5.80.0070.07720.09
5.5.70.0030.08020.07
5.5.60.0130.06720.15
5.5.50.0170.07020.07
5.5.40.0030.06320.09
5.5.30.0230.06320.09
5.5.20.0070.06320.12
5.5.10.0100.07320.12
5.5.00.0130.06320.11
5.4.450.0170.05719.21
5.4.440.0000.08719.35
5.4.430.0070.07719.26
5.4.420.0100.06319.41
5.4.410.0030.03719.26
5.4.400.0030.07019.22
5.4.390.0170.06719.03
5.4.380.0070.07319.14
5.4.370.0070.04318.94
5.4.360.0130.07019.11
5.4.350.0100.07019.11
5.4.340.0000.08318.89
5.4.320.0070.07019.07
5.4.310.0030.08019.12
5.4.300.0070.07318.94
5.4.290.0070.03719.03
5.4.280.0000.07718.81
5.4.270.0070.07718.81
5.4.260.0100.07718.94
5.4.250.0030.03719.02
5.4.240.0070.07018.99
5.4.230.0100.07318.78
5.4.220.0030.07319.09
5.4.210.0030.07018.96
5.4.200.0070.07319.11
5.4.190.0070.07019.07
5.4.180.0030.07718.96
5.4.170.0030.08018.95
5.4.160.0070.07318.92
5.4.150.0000.08319.09
5.4.140.0100.07016.31
5.4.130.0030.06316.17
5.4.120.0030.08016.36
5.4.110.0030.07316.46
5.4.100.0070.03016.49
5.4.90.0100.06716.35
5.4.80.0100.05016.24
5.4.70.0030.05716.27
5.4.60.0100.06716.46
5.4.50.0000.07316.20
5.4.40.0070.07016.26
5.4.30.0030.07716.39
5.4.20.0070.08316.20
5.4.10.0070.07316.37
5.4.00.0100.07315.71
5.3.290.0030.07714.64
5.3.280.0030.07714.57
5.3.270.0070.07314.59
5.3.260.0100.08014.62
5.3.250.0030.08014.58
5.3.240.0100.07314.48
5.3.230.0130.05714.48
5.3.220.0170.06314.54
5.3.210.0070.07714.58
5.3.200.0030.07714.55
5.3.190.0130.07314.57
5.3.180.0070.07014.52
5.3.170.0070.07314.50
5.3.160.0170.06314.44
5.3.150.0030.07314.57
5.3.140.0030.07714.52
5.3.130.0030.04314.53
5.3.120.0100.05314.39
5.3.110.0070.04714.39
5.3.100.0030.08014.05
5.3.90.0070.04713.98
5.3.80.0070.05714.02
5.3.70.0100.07314.03
5.3.60.0070.04013.88
5.3.50.0030.04313.72
5.3.40.0030.07013.90
5.3.30.0000.04313.89
5.3.20.0170.06313.57
5.3.10.0070.04013.54
5.3.00.0130.05713.65
5.2.170.0070.03012.68
5.2.160.0200.01712.68
5.2.150.0070.03712.68
5.2.140.0030.06312.68
5.2.130.0000.03712.68
5.2.120.0030.06312.68
5.2.110.0030.05312.68
5.2.100.0030.06312.68
5.2.90.0000.05712.68
5.2.80.0030.03012.68
5.2.70.0070.06312.68
5.2.60.0030.05712.68
5.2.50.0030.04312.68
5.2.40.0070.05312.68
5.2.30.0030.03312.68
5.2.20.0000.03312.68
5.2.10.0030.03712.68
5.2.00.0100.04312.68
5.1.60.0030.05712.68
5.1.50.0030.02712.68
5.1.40.0100.04712.68
5.1.30.0030.03012.68
5.1.20.0000.06312.68
5.1.10.0030.05712.68
5.1.00.0130.04012.68
5.0.50.0000.04712.68
5.0.40.0000.04312.68
5.0.30.0070.04712.68
5.0.20.0070.03712.68
5.0.10.0070.02012.68
5.0.00.0100.05312.68
4.4.90.0000.04012.68
4.4.80.0030.03012.68
4.4.70.0000.01712.68
4.4.60.0030.03012.68
4.4.50.0030.02012.68
4.4.40.0130.03312.68
4.4.30.0030.03712.68
4.4.20.0070.01712.68
4.4.10.0100.01712.68
4.4.00.0030.05312.68
4.3.110.0030.03312.68
4.3.100.0030.03312.68
4.3.90.0030.01712.68
4.3.80.0030.04012.68
4.3.70.0000.02012.68
4.3.60.0000.03712.68
4.3.50.0030.03012.68
4.3.40.0030.04712.68
4.3.30.0030.03312.68
4.3.20.0000.03712.68
4.3.10.0030.03712.68
4.3.00.0030.03312.68

preferences:
42.53 ms | 401 KiB | 5 Q