3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currentDate = date('m/d/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.60.0110.00418.54
8.3.50.0110.00522.05
8.3.40.0120.00318.77
8.3.30.0110.00319.00
8.3.20.0040.00420.32
8.3.10.0040.00423.33
8.3.00.0050.00320.95
8.2.180.0130.00616.88
8.2.170.0180.00422.96
8.2.160.0110.00420.38
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0090.00019.36
8.2.110.0080.00022.20
8.2.100.0070.00419.25
8.2.90.0080.00019.22
8.2.80.0000.00817.97
8.2.70.0070.00317.63
8.2.60.0040.00417.93
8.2.50.0090.00318.07
8.2.40.0050.00319.95
8.2.30.0050.00318.26
8.2.20.0040.00417.91
8.2.10.0040.00418.03
8.2.00.0040.00417.78
8.1.280.0120.00325.92
8.1.270.0030.00623.72
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00323.98
8.1.230.0080.00319.14
8.1.220.0000.00717.74
8.1.210.0000.00818.77
8.1.200.0030.00617.48
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0080.00018.61
8.1.160.0040.00422.05
8.1.150.0000.00718.77
8.1.140.0000.00817.61
8.1.130.0070.00017.98
8.1.120.0070.00017.66
8.1.110.0000.00817.65
8.1.100.0040.00417.59
8.1.90.0040.00417.71
8.1.80.0040.00417.59
8.1.70.0030.00317.66
8.1.60.0100.00017.73
8.1.50.0090.00017.71
8.1.40.0000.00917.63
8.1.30.0040.00417.85
8.1.20.0080.00017.82
8.1.10.0040.00417.71
8.1.00.0030.00517.50
8.0.300.0050.00218.77
8.0.290.0000.00817.00
8.0.280.0000.00718.59
8.0.270.0030.00317.36
8.0.260.0040.00417.30
8.0.250.0070.00017.15
8.0.240.0000.00717.25
8.0.230.0000.00717.12
8.0.220.0030.00317.10
8.0.210.0030.00317.14
8.0.200.0000.00617.22
8.0.190.0000.00817.16
8.0.180.0000.00817.16
8.0.170.0080.00017.16
8.0.160.0000.00716.99
8.0.150.0030.00317.03
8.0.140.0070.00317.05
8.0.130.0050.00013.48
8.0.120.0040.00417.11
8.0.110.0050.00217.17
8.0.100.0000.00717.14
8.0.90.0060.00316.95
8.0.80.0100.00717.16
8.0.70.0000.00717.06
8.0.60.0000.00717.23
8.0.50.0000.00717.08
8.0.30.0100.01117.32
8.0.20.0080.01117.40
8.0.10.0030.00517.33
8.0.00.0120.00616.95
7.4.330.0000.00515.19
7.4.320.0060.00016.81
7.4.300.0080.00016.75
7.4.290.0000.00716.75
7.4.280.0050.00316.75
7.4.270.0030.00316.66
7.4.260.0060.00316.67
7.4.250.0080.00016.73
7.4.240.0050.00316.76
7.4.230.0050.00316.84
7.4.220.0100.00716.79
7.4.210.0100.01016.63
7.4.200.0080.00016.56
7.4.160.0110.00516.68
7.4.150.0070.01017.40
7.4.140.0130.00517.86
7.4.130.0090.00916.73
7.4.120.0050.01216.72
7.4.110.0070.01016.71
7.4.100.0130.00416.63
7.4.90.0090.00616.58
7.4.80.0150.00419.39
7.4.70.0070.01116.52
7.4.60.0180.00416.68
7.4.50.0040.00416.70
7.4.40.0080.00816.85
7.4.30.0030.01416.74
7.4.10.0060.01215.29
7.4.00.0080.00915.27
7.3.330.0000.00513.27
7.3.320.0030.00313.13
7.3.310.0030.00316.52
7.3.300.0030.00316.45
7.3.290.0060.01216.53
7.3.280.0080.01116.46
7.3.270.0070.01017.40
7.3.260.0060.01216.64
7.3.250.0080.00916.57
7.3.240.0100.00716.53
7.3.230.0100.00916.62
7.3.210.0030.01316.73
7.3.200.0060.00919.39
7.3.190.0090.01316.65
7.3.180.0100.00616.68
7.3.170.0060.01016.52
7.3.160.0060.00916.72
7.3.130.0110.00715.19
7.3.120.0040.01315.16
7.3.110.0070.01315.08
7.3.100.0100.00714.66
7.3.90.0090.00615.26
7.3.80.0060.00314.83
7.3.70.0070.01115.05
7.3.60.0070.00714.91
7.3.50.0000.01014.89
7.3.40.0110.00314.77
7.3.30.0030.00715.05
7.3.20.0070.00716.88
7.3.10.0000.01416.82
7.3.00.0030.00616.41
7.2.330.0100.01316.75
7.2.320.0110.01116.66
7.2.310.0160.00716.72
7.2.300.0060.01216.56
7.2.290.0040.01316.78
7.2.260.0100.00715.13
7.2.250.0100.01015.43
7.2.240.0040.01115.06
7.2.230.0070.00715.22
7.2.220.0030.00715.17
7.2.210.0060.01014.91
7.2.200.0040.00815.08
7.2.190.0070.00715.13
7.2.180.0030.00715.15
7.2.170.0000.01415.31
7.2.160.0030.00614.95
7.2.150.0000.01117.16
7.2.140.0040.01117.07
7.2.130.0070.00717.02
7.2.120.0030.01316.88
7.2.110.0060.01216.85
7.2.100.0070.00416.96
7.2.90.0060.00917.07
7.2.80.0000.01616.87
7.2.70.0080.00416.96
7.2.60.0040.00816.97
7.2.50.0000.01317.18
7.2.40.0040.01117.11
7.2.30.0030.01016.82
7.2.20.0000.01117.20
7.2.10.0120.00316.91
7.2.00.0050.01118.37
7.1.330.0100.00716.09
7.1.320.0070.00716.05
7.1.310.0030.00815.97
7.1.300.0100.00615.77
7.1.290.0050.00315.94
7.1.280.0080.00815.72
7.1.270.0030.01016.06
7.1.260.0040.01115.99
7.1.250.0070.00715.91
7.1.240.0070.00716.13
7.1.230.0000.01216.05
7.1.220.0040.00816.12
7.1.210.0030.01216.03
7.1.200.0060.00716.06
7.1.190.0110.00416.00
7.1.180.0060.00915.68
7.1.170.0070.01015.91
7.1.160.0070.01015.93
7.1.150.0000.01616.10
7.1.140.0040.01116.02
7.1.130.0040.01115.86
7.1.120.0090.00915.83
7.1.110.0030.00916.04
7.1.100.0100.00617.25
7.1.90.0100.00316.04
7.1.80.0080.00616.00
7.1.70.0050.00916.45
7.1.60.0050.01217.89
7.1.50.0070.01016.50
7.1.40.0040.00816.03
7.1.30.0040.01115.89
7.1.20.0000.01416.13
7.1.10.0030.00716.10
7.1.00.0000.04219.19
7.0.330.0030.01015.41
7.0.320.0030.00615.32
7.0.310.0040.00715.70
7.0.300.0030.00715.62
7.0.290.0040.00415.20
7.0.280.0080.00015.51
7.0.270.0030.00915.49
7.0.260.0060.01015.64
7.0.250.0030.01015.71
7.0.240.0030.00815.77
7.0.230.0070.00715.74
7.0.220.0130.00015.69
7.0.210.0030.01415.63
7.0.200.0020.00816.20
7.0.190.0100.00315.70
7.0.180.0070.00415.61
7.0.170.0030.00915.62
7.0.160.0070.00715.33
7.0.150.0040.01115.46
7.0.140.0050.04118.81
7.0.130.0030.00915.78
7.0.120.0040.00415.56
7.0.110.0040.01115.75
7.0.100.0000.00815.30
7.0.90.0100.02117.85
7.0.80.0020.03817.74
7.0.70.0020.03817.70
7.0.60.0050.02717.84
7.0.50.0030.02818.01
7.0.40.0060.03216.92
7.0.30.0020.03016.78
7.0.20.0050.02316.84
7.0.10.0050.02516.83
7.0.00.0020.03416.93
5.6.400.0060.00514.66
5.6.390.0040.00814.51
5.6.380.0030.01414.63
5.6.370.0060.00614.68
5.6.360.0040.01214.89
5.6.350.0060.00314.55
5.6.340.0140.00314.47
5.6.330.0080.00414.80
5.6.320.0100.00314.63
5.6.310.0000.01214.63
5.6.300.0030.00914.38
5.6.290.0040.01114.68
5.6.280.0040.01114.54
5.6.270.0080.00414.77
5.6.260.0040.01114.21
5.6.250.0060.00314.52
5.6.240.0060.02317.59
5.6.230.0030.02517.72
5.6.220.0030.03817.64
5.6.210.0020.04517.65
5.6.200.0050.02817.83
5.6.190.0050.02217.81
5.6.180.0020.03117.68
5.6.170.0090.02217.71
5.6.160.0040.02117.76
5.6.150.0070.02717.77
5.6.140.0030.02317.74
5.6.130.0030.02817.65
5.6.120.0050.01817.64
5.6.110.0060.02217.96
5.6.100.0020.02617.80
5.6.90.0030.02317.78
5.6.80.0020.02517.44
5.6.70.0090.01917.29
5.6.60.0080.03217.44
5.6.50.0010.02617.46
5.6.40.0050.02217.51
5.6.30.0060.03817.37
5.6.20.0080.04117.45
5.6.10.0020.04517.38
5.6.00.0100.03417.51
5.5.380.0050.03817.45
5.5.370.0050.02417.28
5.5.360.0070.04617.42
5.5.350.0020.02817.44
5.5.340.0030.02517.57
5.5.330.0070.02217.57
5.5.320.0020.02717.65
5.5.310.0030.02717.60
5.5.300.0050.02317.67
5.5.290.0050.02517.59
5.5.280.0030.02617.57
5.5.270.0070.02417.73
5.5.260.0060.01817.57
5.5.250.0040.02117.62
5.5.240.0110.01817.35
5.5.230.0030.02317.08
5.5.220.0050.02217.14
5.5.210.0030.02317.17
5.5.200.0030.02217.35
5.5.190.0090.03117.20
5.5.180.0130.03517.25
5.5.170.0090.00014.38
5.5.160.0070.04117.31
5.5.150.0050.04517.20
5.5.140.0050.04517.15
5.5.130.0070.04717.20
5.5.120.0070.03417.31
5.5.110.0000.03117.24
5.5.100.0050.02017.11
5.5.90.0060.02817.17
5.5.80.0050.03517.35
5.5.70.0080.04217.17
5.5.60.0050.04517.08
5.5.50.0070.04117.29
5.5.40.0110.04117.13
5.5.30.0090.04317.21
5.5.20.0050.04417.32
5.5.10.0140.03717.34
5.5.00.0030.04716.96
5.4.450.0020.02515.35
5.4.440.0050.02015.29
5.4.430.0010.02415.30
5.4.420.0050.01815.17
5.4.410.0050.02015.19
5.4.400.0090.01814.90
5.4.390.0000.02615.06
5.4.380.0030.02415.11
5.4.370.0000.02915.17
5.4.360.0050.02015.10
5.4.350.0030.02315.17
5.4.340.0060.04015.00
5.4.330.0030.00811.30
5.4.320.0060.04214.98
5.4.310.0120.03515.10
5.4.300.0010.03115.07
5.4.290.0040.04015.03
5.4.280.0090.03215.03
5.4.270.0100.03515.11
5.4.260.0040.02215.03
5.4.250.0070.03814.93
5.4.240.0080.02214.92
5.4.230.0100.03415.00
5.4.220.0070.04015.02
5.4.210.0060.03614.96
5.4.200.0030.02515.03
5.4.190.0050.04415.04
5.4.180.0050.02515.24
5.4.170.0090.03515.02
5.4.160.0030.04315.19
5.4.150.0070.03815.03
5.4.140.0030.04013.66
5.4.130.0080.03113.85
5.4.120.0020.02513.71
5.4.110.0000.04513.81
5.4.100.0080.03313.71
5.4.90.0000.03213.74
5.4.80.0020.02513.76
5.4.70.0020.02413.73
5.4.60.0070.02513.72
5.4.50.0140.03213.67
5.4.40.0050.02513.70
5.4.30.0090.01813.65
5.4.20.0020.04513.72
5.4.10.0050.03613.57
5.4.00.0090.02613.34
5.3.290.0060.04212.60
5.3.280.0080.03812.60
5.3.270.0060.04312.60
5.3.260.0010.02512.52
5.3.250.0090.02012.60
5.3.240.0090.03812.52
5.3.230.0030.04012.69
5.3.220.0020.04112.58
5.3.210.0050.03012.40
5.3.200.0050.03912.36
5.3.190.0030.04112.51
5.3.180.0050.03112.49
5.3.170.0030.03312.53
5.3.160.0060.04012.54
5.3.150.0060.03612.51
5.3.140.0050.02912.49
5.3.130.0030.04012.47
5.3.120.0080.03612.65
5.3.110.0030.04212.57
5.3.100.0070.04212.33
5.3.90.0020.03712.14
5.3.80.0020.04212.09
5.3.70.0020.03212.16
5.3.60.0030.03112.25
5.3.50.0070.02712.15
5.3.40.0020.04212.09
5.3.30.0050.03512.06
5.3.20.0000.02312.03
5.3.10.0070.03812.01
5.3.00.0080.03511.81
5.2.170.0030.06311.40
5.2.160.0000.03711.40
5.2.150.0100.05711.40
5.2.140.0030.03311.40
5.2.130.0070.06011.40
5.2.120.0030.05311.40
5.2.110.0000.06311.40
5.2.100.0070.06311.40
5.2.90.0000.06011.40
5.2.80.0070.06311.40
5.2.70.0070.05011.40
5.2.60.0030.04011.40
5.2.50.0030.05711.40
5.2.40.0030.06711.40
5.2.30.0100.05711.40
5.2.20.0000.07011.40
5.2.10.0030.04011.40
5.2.00.0030.03711.40
5.1.60.0000.02711.40
5.1.50.0070.05311.40
5.1.40.0070.05011.40
5.1.30.0070.05011.40
5.1.20.0100.05011.40
5.1.10.0000.05311.40
5.1.00.0030.04011.40
5.0.50.0000.04711.40
5.0.40.0000.03011.40
5.0.30.0030.06011.40
5.0.20.0030.03711.40
5.0.10.0030.04311.40
5.0.00.0030.05311.40
4.4.90.0070.02011.40
4.4.80.0000.01711.40
4.4.70.0070.03311.40
4.4.60.0030.03311.40
4.4.50.0000.03711.40
4.4.40.0000.02711.40
4.4.30.0070.02711.40
4.4.20.0030.02011.40
4.4.10.0030.02311.40
4.4.00.0000.05311.40
4.3.110.0000.03711.40
4.3.100.0000.03711.40
4.3.90.0070.03011.40
4.3.80.0000.02711.40
4.3.70.0000.03711.40
4.3.60.0030.03311.40
4.3.50.0000.03311.40
4.3.40.0000.03711.40
4.3.30.0000.02011.40
4.3.20.0070.02011.40
4.3.10.0000.02311.40
4.3.00.0000.03711.40

preferences:
48.85 ms | 400 KiB | 5 Q