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_feb) { echo "The date $currentDate is in March";} elseif($timestamp >= $current && $timestamp <= $end_feb) { echo "The date $currentDate is in April";} elseif($timestamp >= $current && $timestamp <= $end_feb) { echo "The date $currentDate is in May";} elseif($timestamp >= $current && $timestamp <= $end_feb) { echo "The date $currentDate is in June";} elseif($timestamp >= $current && $timestamp <= $end_feb) { echo "The date $currentDate is in July";} elseif($timestamp >= $current && $timestamp <= $end_feb) { echo "The date $currentDate is in August";} elseif($timestamp >= $current && $timestamp <= $end_feb) { echo "The date $currentDate is in September";} elseif($timestamp >= $current && $timestamp <= $end_feb) { echo "The date $currentDate is in October";} elseif($timestamp >= $current && $timestamp <= $end_feb) { echo "The date $currentDate is in November";} elseif($timestamp >= $current && $timestamp <= $end_feb) { 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.00718.64
8.3.50.0080.00821.97
8.3.40.0120.00618.72
8.3.30.0100.00319.13
8.3.20.0070.00020.38
8.3.10.0030.00523.71
8.3.00.0000.00820.79
8.2.180.0160.00616.63
8.2.170.0090.00922.96
8.2.160.0150.00320.53
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0060.00319.38
8.2.110.0060.00322.30
8.2.100.0040.00719.25
8.2.90.0040.00419.22
8.2.80.0000.00817.97
8.2.70.0030.00717.75
8.2.60.0000.00817.93
8.2.50.0060.00318.07
8.2.40.0040.00420.07
8.2.30.0000.00718.36
8.2.20.0000.00817.79
8.2.10.0000.00818.27
8.2.00.0090.00017.82
8.1.280.0140.00325.92
8.1.270.0060.00323.92
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.83
8.1.230.0040.00719.16
8.1.220.0090.00017.74
8.1.210.0050.00318.77
8.1.200.0060.00317.47
8.1.190.0080.00017.48
8.1.180.0050.00318.10
8.1.170.0080.00018.78
8.1.160.0040.00422.10
8.1.150.0000.00818.92
8.1.140.0030.00617.66
8.1.130.0030.00317.84
8.1.120.0030.00317.58
8.1.110.0040.00417.60
8.1.100.0000.00717.58
8.1.90.0000.00717.69
8.1.80.0040.00417.64
8.1.70.0070.00017.52
8.1.60.0100.00017.74
8.1.50.0060.00317.59
8.1.40.0040.00417.72
8.1.30.0060.00317.71
8.1.20.0000.00817.73
8.1.10.0040.00417.72
8.1.00.0000.00817.56
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0040.00418.54
8.0.270.0070.00017.35
8.0.260.0000.00717.27
8.0.250.0000.00717.07
8.0.240.0040.00417.23
8.0.230.0000.00817.08
8.0.220.0030.00317.11
8.0.210.0030.00317.10
8.0.200.0030.00317.18
8.0.190.0050.00317.20
8.0.180.0040.00417.13
8.0.170.0040.00417.00
8.0.160.0070.00017.22
8.0.150.0000.00716.96
8.0.140.0070.00417.09
8.0.130.0060.00013.45
8.0.120.0040.00416.99
8.0.110.0050.00317.19
8.0.100.0030.00517.05
8.0.90.0000.00816.98
8.0.80.0130.00917.16
8.0.70.0050.00317.14
8.0.60.0000.00716.92
8.0.50.0040.00417.14
8.0.30.0090.00917.32
8.0.20.0080.01117.55
8.0.10.0000.00717.22
8.0.00.0070.01216.93
7.4.330.0030.00315.03
7.4.320.0060.00016.65
7.4.300.0030.00316.77
7.4.290.0030.00316.75
7.4.280.0000.00816.77
7.4.270.0040.00416.67
7.4.260.0070.00016.74
7.4.250.0040.00416.69
7.4.240.0000.00816.63
7.4.230.0000.00816.88
7.4.220.0090.01016.70
7.4.210.0030.01116.79
7.4.200.0000.00716.79
7.4.160.0090.00616.70
7.4.150.0100.01017.40
7.4.140.0090.01217.86
7.4.130.0050.01216.68
7.4.120.0070.01116.69
7.4.110.0100.00616.81
7.4.100.0120.00616.80
7.4.90.0030.01416.75
7.4.80.0030.01719.39
7.4.70.0080.00816.67
7.4.60.0060.01016.73
7.4.50.0030.00616.77
7.4.40.0080.00716.68
7.4.30.0070.01016.68
7.4.00.0080.00515.16
7.3.330.0000.00613.41
7.3.320.0030.00313.28
7.3.310.0070.00016.26
7.3.300.0030.00316.34
7.3.290.0080.01116.54
7.3.280.0070.00916.44
7.3.270.0090.00917.40
7.3.260.0070.01016.73
7.3.250.0120.00716.58
7.3.240.0090.00816.69
7.3.230.0070.01016.70
7.3.210.0170.00716.54
7.3.200.0040.01219.39
7.3.190.0100.01116.40
7.3.180.0140.00316.57
7.3.170.0130.00316.67
7.3.160.0000.01616.44
7.3.120.0100.00615.09
7.3.110.0070.01115.15
7.3.100.0060.00915.11
7.3.90.0050.00615.00
7.3.80.0080.00615.05
7.3.70.0070.00514.93
7.3.60.0030.01015.14
7.3.50.0070.00714.82
7.3.40.0020.00914.97
7.3.30.0100.00414.88
7.3.20.0070.00716.88
7.3.10.0060.00916.76
7.3.00.0080.00616.72
7.2.330.0070.01116.83
7.2.320.0110.00716.96
7.2.310.0130.01016.95
7.2.300.0100.01016.82
7.2.290.0030.01416.75
7.2.250.0100.01015.18
7.2.240.0070.00615.22
7.2.230.0070.01015.25
7.2.220.0060.00814.95
7.2.210.0030.01015.25
7.2.200.0030.00715.16
7.2.190.0030.01015.21
7.2.180.0070.00715.14
7.2.170.0020.01115.17
7.2.160.0090.00515.29
7.2.150.0020.01017.02
7.2.140.0090.00617.01
7.2.130.0040.01017.04
7.2.120.0050.00816.98
7.2.110.0090.00616.99
7.2.100.0020.01216.94
7.2.90.0080.00416.97
7.2.80.0040.01316.93
7.2.70.0070.00817.04
7.2.60.0060.00716.86
7.2.50.0100.00717.07
7.2.40.0050.01217.06
7.2.30.0050.01017.11
7.2.20.0060.00716.93
7.2.10.0060.00816.87
7.2.00.0040.01117.63
7.1.330.0030.01115.95
7.1.320.0030.00815.87
7.1.310.0070.00515.97
7.1.300.0100.00615.99
7.1.290.0050.01115.85
7.1.280.0040.01015.90
7.1.270.0040.00615.76
7.1.260.0060.01016.04
7.1.250.0090.00315.99
7.1.240.0100.00715.94
7.1.230.0030.01215.79
7.1.220.0040.01115.87
7.1.210.0080.00815.90
7.1.200.0070.00715.74
7.1.190.0070.00615.89
7.1.180.0050.01215.96
7.1.170.0080.00515.68
7.1.160.0110.00215.99
7.1.150.0090.00415.86
7.1.140.0030.01015.96
7.1.130.0040.01115.99
7.1.120.0010.01015.95
7.1.110.0020.01115.88
7.1.100.0050.01316.78
7.1.90.0060.00715.84
7.1.80.0070.00715.96
7.1.70.0060.00516.33
7.1.60.0060.00816.34
7.1.50.0030.01016.18
7.1.40.0070.00716.03
7.1.30.0050.01115.93
7.1.20.0050.00915.93
7.1.10.0000.01015.79
7.1.00.0070.02818.12
7.0.330.0030.00815.43
7.0.320.0040.01115.42
7.0.310.0020.01115.42
7.0.300.0080.00615.43
7.0.290.0070.00515.35
7.0.280.0080.00515.28
7.0.270.0090.00815.40
7.0.260.0050.00615.42
7.0.250.0030.00915.47
7.0.240.0060.00815.67
7.0.230.0050.00515.37
7.0.220.0020.01115.63
7.0.210.0090.00515.40
7.0.200.0030.01015.93
7.0.190.0090.00615.60
7.0.180.0090.00515.63
7.0.170.0030.00815.60
7.0.160.0040.00815.68
7.0.150.0020.01215.34
7.0.140.0070.02817.70
7.0.130.0070.00515.45
7.0.120.0030.00715.63
7.0.110.0070.00715.48
7.0.100.0070.00715.58
7.0.90.0040.00915.49
7.0.80.0210.02916.92
7.0.70.0040.03516.93
7.0.60.0020.03217.02
7.0.50.0040.02317.24
7.0.40.0080.02815.68
7.0.30.0040.03515.79
7.0.20.0070.02515.65
7.0.10.0090.02115.75
7.0.00.0070.03415.78
5.6.400.0030.01014.70
5.6.390.0100.00314.52
5.6.380.0020.01214.76
5.6.370.0050.01014.59
5.6.360.0070.00814.37
5.6.350.0040.01114.47
5.6.340.0050.00914.33
5.6.330.0020.01114.40
5.6.320.0090.00514.36
5.6.310.0060.00714.54
5.6.300.0080.00514.61
5.6.290.0060.00714.53
5.6.280.0080.02616.52
5.6.270.0040.00814.26
5.6.260.0040.00814.38
5.6.250.0100.00514.52
5.6.240.0080.00614.41
5.6.230.0090.02716.38
5.6.220.0070.03016.42
5.6.210.0030.03516.49
5.6.200.0100.02216.51
5.6.190.0070.02916.73
5.6.180.0070.03416.56
5.6.170.0080.02816.61
5.6.160.0060.02916.49
5.6.150.0100.03116.64
5.6.140.0050.03416.55
5.6.130.0080.03116.69
5.6.120.0070.02016.56
5.6.110.0070.02916.48
5.6.100.0070.03116.52
5.6.90.0080.03216.53
5.6.80.0080.03016.35
5.6.70.0060.03316.35
5.6.60.0080.02816.24
5.6.50.0090.03016.32
5.6.40.0060.03416.43
5.6.30.0060.02916.31
5.6.20.0100.02716.33
5.6.10.0010.03816.40
5.6.00.0050.02316.34
5.5.380.0040.00612.51
5.5.370.0110.02815.18
5.5.360.0090.02915.30
5.5.350.0040.02215.34
5.5.340.0070.02815.41
5.5.330.0060.02115.36
5.5.320.0080.02615.37
5.5.310.0040.02215.43
5.5.300.0090.02215.45
5.5.290.0050.02815.47
5.5.280.0060.03715.47
5.5.270.0050.02315.50
5.5.260.0050.03215.29
5.5.250.0080.03015.27
5.5.240.0060.02515.22
5.5.230.0070.02815.20
5.5.220.0060.02815.09
5.5.210.0100.02614.98
5.5.200.0070.02215.23
5.5.190.0120.02715.13
5.5.180.0080.03014.97
5.5.170.0080.00612.59
5.5.160.0040.03415.26
5.5.150.0080.02815.04
5.5.140.0040.03015.16
5.5.130.0060.02215.21
5.5.120.0060.03215.10
5.5.110.0050.03215.25
5.5.100.0040.03015.18
5.5.90.0040.03315.25
5.5.80.0030.03415.02
5.5.70.0050.02815.01
5.5.60.0040.03414.99
5.5.50.0050.02815.07
5.5.40.0080.03015.13
5.5.30.0050.03215.05
5.5.20.0060.02915.00
5.5.10.0040.02915.04
5.5.00.0090.03115.03
5.4.450.0050.03113.74
5.4.440.0050.03013.75
5.4.430.0030.03113.96
5.4.420.0040.03313.72
5.4.410.0070.03113.81
5.4.400.0050.03313.39
5.4.390.0040.02813.56
5.4.380.0070.02913.68
5.4.370.0050.01813.68
5.4.360.0070.02313.72
5.4.350.0050.02513.73
5.4.340.0090.02813.65
5.4.330.0020.01010.77
5.4.320.0070.02613.61
5.4.310.0030.03013.74
5.4.300.0090.02813.73
5.4.290.0050.02813.60
5.4.280.0050.02213.69
5.4.270.0100.02613.56
5.4.260.0070.02913.67
5.4.250.0020.03013.44
5.4.240.0040.02913.60
5.4.230.0070.02913.66
5.4.220.0050.02913.62
5.4.210.0070.02813.75
5.4.200.0010.02913.65
5.4.190.0070.02813.72
5.4.180.0090.02413.68
5.4.170.0040.03313.76
5.4.160.0050.01613.62
5.4.150.0060.02813.71
5.4.140.0050.02812.56
5.4.130.0080.01612.78
5.4.120.0040.01612.78
5.4.110.0050.02712.84
5.4.100.0040.03112.75
5.4.90.0060.02512.83
5.4.80.0060.02112.80
5.4.70.0040.02212.72
5.4.60.0060.01412.88
5.4.50.0060.02712.73
5.4.40.0060.02612.64
5.4.30.0060.02612.75
5.4.20.0070.02512.63
5.4.10.0060.01812.72
5.4.00.0070.01812.50
5.3.290.0050.03211.99
5.3.280.0080.02211.95
5.3.270.0070.02412.01
5.3.260.0040.02811.96
5.3.250.0040.02711.97
5.3.240.0030.03111.94
5.3.230.0020.02111.98
5.3.220.0070.02811.76
5.3.210.0080.02711.75
5.3.200.0040.02211.81
5.3.190.0050.01911.86
5.3.180.0040.01811.85
5.3.170.0030.02211.92
5.3.160.0060.02611.89
5.3.150.0020.03211.95
5.3.140.0050.02911.80
5.3.130.0050.02711.94
5.3.120.0090.02411.88
5.3.110.0030.02011.84
5.3.100.0100.02411.71
5.3.90.0080.02311.56
5.3.80.0050.02911.49
5.3.70.0030.01911.50
5.3.60.0030.01711.73
5.3.50.0070.02411.58
5.3.40.0070.02011.63
5.3.30.0040.03011.69
5.3.20.0050.02911.47
5.3.10.0080.02111.38
5.3.00.0060.02511.43
5.2.170.0070.03210.61
5.2.160.0040.03310.58
5.2.150.0030.03510.59
5.2.140.0090.02610.60
5.2.130.0000.03310.45
5.2.120.0050.03010.48
5.2.110.0070.03310.51
5.2.100.0060.03110.46
5.2.90.0030.03210.59
5.2.80.0050.02010.54
5.2.70.0020.02310.56
5.2.60.0000.03010.55
5.2.50.0050.03210.53
5.2.40.0060.03010.53
5.2.30.0050.02310.48
5.2.20.0060.02210.43
5.2.10.0120.02410.43
5.2.00.0030.03310.43
5.1.60.0050.03010.43
5.1.50.0030.03110.43
5.1.40.0060.02510.43
5.1.30.0050.03010.43
5.1.20.0070.02510.43
5.1.10.0050.02610.43
5.1.00.0020.03210.43
5.0.50.0020.02210.43
5.0.40.0030.02210.43
5.0.30.0040.03310.43
5.0.20.0000.02410.43
5.0.10.0030.02110.43
5.0.00.0070.02010.43
4.4.90.0080.01510.43
4.4.80.0030.01710.43
4.4.70.0020.02010.43
4.4.60.0070.01210.43
4.4.50.0040.01810.43
4.4.40.0030.02610.43
4.4.30.0020.01810.43
4.4.20.0020.01510.43
4.4.10.0050.01710.43
4.4.00.0020.02210.43
4.3.110.0020.02010.43
4.3.100.0000.02210.43
4.3.90.0050.01610.43
4.3.80.0030.02910.43
4.3.70.0040.01910.43
4.3.60.0020.01810.43
4.3.50.0020.01810.43
4.3.40.0000.02810.43
4.3.30.0000.01310.43
4.3.20.0020.02210.43
4.3.10.0010.01810.43
4.3.00.0020.01510.43

preferences:
47.04 ms | 400 KiB | 5 Q