3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL ^ E_NOTICE); ?> <?php if($_GET['submit'] && $_GET['category'] && $_GET['Manufacture']) { //Check whether user presses submit button, enter month, date, year, and category //Ready to get all data needed $start_month= $_GET['month']; $start_date= $_GET['date']; $start_year= $_GET['year']; $year_mfg= $_GET['Manufacture']; $CY=date("jFy", strtotime("-3 Years")); $fromDate = date("jFy", strtotime("-3 Years")); $Cu=date('j-F-Y'); $I=$S-2; $S=date('Y'); $Q=$S-$year_mfg; if(!checkdate($start_month, $start_date, $start_year)){ //IS inputted data valid? $continue = "NO"; } else { $continue = "YES"; }; if($continue == "NO"){ if($Q<=1) { echo '<center>'; echo '<img src="images/IIN.PNG">'; echo "</br>"; echo '<a href="index.php"><img src="images/refresh1.png"></a>'; } else { echo'<center>'; echo '<img src="images/OOW.PNG">'; echo "</br>"; echo '<a href="index.php"><img src="images/refresh2.png"></a>'; }; } } if($continue == "YES"){ $category = $_GET['category']; echo $Cu; echo "<br />"; echo "<h1>Date of Purchase: "; echo $start_dmy = $start_date . "-" . $start_month. "-". $start_year; echo "<h1>Year of Manufacturing: "; echo $year_mfg; echo "<br />"; if($category == 0){ // if user selects "Not listed" then... echo "ohh, I'll check whether u fill all the blanks :) <br/>"; $len_int = $_GET['int']; if(!$len_int) { $len_int = 0; } } else { switch ($category) { case 1: // driving vroom vroom... { $date_modifier = "+2 year"; break; } case 2: // office licensing { $date_modifier = "-2 year"; break; } case 3: //tax certifications { $date_modifier = "+90 days"; } } //Guess this would be enough. for now... } $final_dmy = $start_dmy . $date_modifier; $final_dmy = strtotime ($final_dmy); echo "<br />"; // now we should combine it echo "Customer's Free Support Ends: "; echo $final_dmy = date("j-F-Y", $final_dmy); //finally,. converts the date back to the d F Y format.... e.g.: 08 April 2012 echo "</br>"; echo "</br>"; echo $Q; echo "</br>"; echo "</br>"; echo $Cu; echo "</br>"; echo $final_dmy; echo "</br>"; echo "</br>"; echo $Cu*2; echo "</br>"; echo $Cu-2; echo "<center>"; if ($final_dmy >= $Cu){ // if user selects "Not listed" then... echo $Cu; echo "</br>"; echo $final_dmy; echo 'Inn'; echo "</br>"; echo 'OOW'; echo "</br>"; }elseif($Q<=1){ echo $Cu; echo "</br>"; echo $final_dmy; echo '<img src="images/OOW.PNG">'; echo "</br>"; echo 'OOW'; echo "</br>"; } } ?>

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.0090.00616.58
8.3.60.0140.00718.43
8.3.50.0120.00722.11
8.3.40.0140.00719.02
8.3.30.0110.00418.64
8.3.20.0080.00018.85
8.3.10.0080.00019.04
8.3.00.0040.00423.61
8.2.180.0070.01016.63
8.2.170.0140.00322.96
8.2.160.0110.00420.53
8.2.150.0150.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00020.62
8.2.110.0110.00720.39
8.2.100.0090.00317.91
8.2.90.0000.00819.10
8.2.80.0050.00317.97
8.2.70.0060.00317.50
8.2.60.0000.00817.92
8.2.50.0050.00318.07
8.2.40.0030.00618.28
8.2.30.0000.00819.71
8.2.20.0040.00417.76
8.2.10.0050.00317.68
8.2.00.0050.00217.77
8.1.280.0150.00025.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0120.00922.14
8.1.230.0070.00417.45
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0000.00917.13
8.1.190.0050.00317.41
8.1.180.0030.00618.10
8.1.170.0060.00318.64
8.1.160.0000.00818.92
8.1.150.0020.00518.63
8.1.140.0040.00417.38
8.1.130.0000.00717.90
8.1.120.0050.00317.44
8.1.110.0000.00917.41
8.1.100.0050.00317.38
8.1.90.0000.00717.47
8.1.80.0040.00317.41
8.1.70.0030.00317.43
8.1.60.0000.00817.57
8.1.50.0040.00417.44
8.1.40.0000.00817.54
8.1.30.0000.00817.48
8.1.20.0000.00817.61
8.1.10.0040.00417.49
8.1.00.0030.00617.44
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0000.00718.43
8.0.270.0020.00517.28
8.0.260.0030.00316.80
8.0.250.0030.00517.04
8.0.240.0030.00516.97
8.0.230.0000.00717.05
8.0.220.0030.00316.94
8.0.210.0070.00016.94
8.0.200.0000.00716.98
8.0.190.0000.00816.98
8.0.180.0030.00517.00
8.0.170.0070.00016.86
8.0.160.0080.00016.98
8.0.150.0030.00516.79
8.0.140.0100.00016.80
8.0.130.0030.00313.41
8.0.120.0000.00716.88
8.0.110.0000.00816.94
8.0.100.0050.00316.79
8.0.90.0040.00417.04
8.0.80.0080.00916.90
8.0.70.0000.00716.91
8.0.60.0040.00416.82
8.0.50.0030.00516.81
8.0.30.0110.01117.13
8.0.20.0050.01417.40
8.0.10.0040.00416.91
8.0.00.0130.00816.75
7.4.330.0030.00314.55
7.4.320.0000.00616.43
7.4.300.0000.00716.48
7.4.290.0030.00416.59
7.4.280.0000.00816.45
7.4.270.0000.00716.52
7.4.260.0030.00313.23
7.4.250.0000.00816.38
7.4.240.0030.00416.49
7.4.230.0070.00016.39
7.4.220.0100.01316.46
7.4.210.0080.00916.56
7.4.200.0000.00716.45
7.4.190.0000.00816.39
7.4.160.0120.00316.64
7.4.150.0150.00317.40
7.4.140.0140.00317.86
7.4.130.0220.01516.50
7.4.120.0110.00716.64
7.4.110.0030.01516.65
7.4.100.0060.01016.54
7.4.90.0090.01416.57
7.4.80.0030.01919.37
7.4.70.0080.00816.58
7.4.60.0100.00716.21
7.4.50.0030.00616.37
7.4.40.0100.00722.27
7.4.30.0070.01016.54
7.4.10.0060.01215.15
7.4.00.0070.00815.13
7.3.330.0050.00013.24
7.3.320.0070.00013.27
7.3.310.0070.00016.22
7.3.300.0000.00716.40
7.3.290.0080.00516.32
7.3.280.0120.00416.37
7.3.270.0000.01717.40
7.3.260.0090.01018.24
7.3.250.0150.00716.44
7.3.240.0090.01316.46
7.3.230.0060.01216.61
7.3.210.0040.01816.47
7.3.200.0100.01319.39
7.3.190.0090.00616.60
7.3.180.0060.01016.45
7.3.170.0090.01316.48
7.3.160.0050.01016.43
7.3.130.0040.01515.01
7.3.120.0070.00914.84
7.3.110.0050.01215.01
7.3.100.0090.00614.94
7.3.90.0050.00814.88
7.3.80.0110.00514.93
7.3.70.0050.00514.87
7.3.60.0080.00514.80
7.3.50.0050.00914.68
7.3.40.0090.00414.76
7.3.30.0070.00614.88
7.3.20.0040.00916.53
7.3.10.0070.00716.63
7.3.00.0060.00616.82
7.2.330.0100.01016.49
7.2.320.0030.01416.34
7.2.310.0100.00916.55
7.2.300.0090.00916.66
7.2.290.0090.00616.76
7.2.260.0110.00615.35
7.2.250.0080.01015.00
7.2.240.0080.00814.74
7.2.230.0110.00314.87
7.2.220.0040.00915.20
7.2.210.0040.00715.19
7.2.200.0090.00615.08
7.2.190.0020.01414.97
7.2.180.0100.00514.80
7.2.170.0060.00815.01
7.2.160.0020.01015.02
7.2.150.0030.00716.60
7.2.140.0070.00516.75
7.2.130.0080.00516.75
7.2.120.0080.00816.85
7.2.110.0040.00916.87
7.2.100.0050.00716.92
7.2.90.0040.00917.05
7.2.80.0050.00816.77
7.2.70.0050.00817.09
7.2.60.0030.01016.93
7.2.50.0100.00416.91
7.2.40.0060.00616.88
7.2.30.0100.00516.90
7.2.20.0030.01316.93
7.2.10.0060.00916.94
7.2.00.0030.01017.63
7.1.330.0070.01015.80
7.1.320.0080.00715.90
7.1.310.0060.00615.77
7.1.300.0070.00815.54
7.1.290.0100.00615.76
7.1.280.0010.00915.69
7.1.270.0030.00815.64
7.1.260.0060.00615.69
7.1.250.0080.00615.65
7.1.240.0080.00715.79
7.1.230.0080.00415.79
7.1.220.0020.01115.79
7.1.210.0020.01215.71
7.1.200.0040.00715.52
7.1.190.0050.00915.93
7.1.180.0060.00615.67
7.1.170.0070.00915.75
7.1.160.0090.00515.68
7.1.150.0080.00715.71
7.1.140.0080.00215.50
7.1.130.0040.01015.62
7.1.120.0090.00715.76
7.1.110.0070.00415.60
7.1.100.0040.00916.40
7.1.90.0050.01015.79
7.1.80.0050.00715.73
7.1.70.0050.00716.16
7.1.60.0060.01016.94
7.1.50.0050.01416.00
7.1.40.0110.00515.66
7.1.30.0000.01015.69
7.1.20.0050.00715.61
7.1.10.0100.00515.61
7.1.00.0040.02218.05
7.0.330.0050.00715.40
7.0.320.0050.00715.33
7.0.310.0030.00515.28
7.0.300.0070.00715.42
7.0.290.0080.00515.35
7.0.280.0040.00715.27
7.0.270.0040.01115.12
7.0.260.0080.00515.34
7.0.250.0020.01115.31
7.0.240.0110.00515.22
7.0.230.0050.01015.29
7.0.220.0020.00915.20
7.0.210.0060.00515.28
7.0.200.0060.00715.60
7.0.190.0040.01115.27
7.0.180.0100.00515.28
7.0.170.0010.01015.40
7.0.160.0060.00715.38
7.0.150.0030.00915.34
7.0.140.0060.02717.56
7.0.130.0030.01015.46
7.0.120.0030.00915.22
7.0.110.0050.00715.44
7.0.100.0050.00915.27
7.0.90.0060.03417.41
7.0.80.0060.03017.55
7.0.70.0050.03417.45
7.0.60.0080.03117.55
7.0.50.0050.02017.78
7.0.40.0050.02915.72
7.0.30.0030.03315.63
7.0.20.0070.02215.72
7.0.10.0070.02015.53
7.0.00.0050.02915.58
5.6.400.0060.00614.43
5.6.390.0060.00614.34
5.6.380.0030.00914.47
5.6.370.0020.01014.42
5.6.360.0030.01014.24
5.6.350.0020.01414.61
5.6.340.0090.00314.29
5.6.330.0090.00514.06
5.6.320.0050.00814.33
5.6.310.0070.00214.45
5.6.300.0020.01114.50
5.6.290.0050.01014.43
5.6.280.0020.03216.54
5.6.270.0020.01314.55
5.6.260.0050.01214.68
5.6.250.0030.01214.30
5.6.240.0070.02016.36
5.6.230.0030.03516.52
5.6.220.0040.02916.37
5.6.210.0040.03216.50
5.6.200.0060.03116.58
5.6.190.0040.03316.59
5.6.180.0050.02216.65
5.6.170.0040.01716.51
5.6.160.0020.03616.61
5.6.150.0030.03816.54
5.6.140.0080.02916.66
5.6.130.0090.01816.71
5.6.120.0090.02616.64
5.6.110.0070.03016.53
5.6.100.0110.02016.51
5.6.90.0010.03716.67
5.6.80.0050.02116.52
5.6.70.0030.02416.33
5.6.60.0090.02316.35
5.6.50.0080.02116.29
5.6.40.0070.02716.31
5.6.30.0020.03416.26
5.6.20.0030.02416.38
5.6.10.0050.02816.37
5.6.00.0080.01816.41
5.5.380.0080.01816.31
5.5.370.0070.01816.23
5.5.360.0070.02016.42
5.5.350.0050.03016.38
5.5.340.0000.03516.49
5.5.330.0060.01916.54
5.5.320.0070.02916.58
5.5.310.0020.03216.54
5.5.300.0120.02716.44
5.5.290.0020.02716.61
5.5.280.0080.01916.39
5.5.270.0050.03316.57
5.5.260.0060.03116.37
5.5.250.0060.02916.23
5.5.240.0080.02816.31
5.5.230.0030.03516.20
5.5.220.0080.02716.34
5.5.210.0050.03316.18
5.5.200.0020.02716.14
5.5.190.0030.02316.25
5.5.180.0100.02816.26
5.5.170.0010.01114.21
5.5.160.0060.01816.26
5.5.150.0050.03416.34
5.5.140.0080.02416.27
5.5.130.0060.02916.11
5.5.120.0060.01916.23
5.5.110.0040.02416.24
5.5.100.0060.03016.05
5.5.90.0050.02816.20
5.5.80.0060.01816.19
5.5.70.0080.03016.13
5.5.60.0040.02816.00
5.5.50.0010.02416.02
5.5.40.0030.03016.20
5.5.30.0050.02116.16
5.5.20.0060.02516.29
5.5.10.0080.03016.18
5.5.00.0070.03116.16
5.4.450.0060.03314.51
5.4.440.0060.02814.40
5.4.430.0030.03114.47
5.4.420.0060.03114.52
5.4.410.0070.02414.45
5.4.400.0030.03014.30
5.4.390.0040.02814.44
5.4.380.0070.02514.30
5.4.370.0060.03014.38
5.4.360.0040.03014.35
5.4.350.0030.03014.39
5.4.340.0060.02914.36
5.4.330.0000.00912.05
5.4.320.0000.03514.40
5.4.310.0020.02014.38
5.4.300.0080.01414.35
5.4.290.0050.02714.44
5.4.280.0010.02714.33
5.4.270.0040.03114.33
5.4.260.0060.01914.35
5.4.250.0060.01514.33
5.4.240.0050.01914.40
5.4.230.0030.02214.40
5.4.220.0010.02314.34
5.4.210.0020.02914.41
5.4.200.0030.02914.36
5.4.190.0040.03014.38
5.4.180.0040.02914.40
5.4.170.0010.01914.38
5.4.160.0010.03214.29
5.4.150.0040.02014.37
5.4.140.0050.01513.49
5.4.130.0070.02313.46
5.4.120.0040.02813.39
5.4.110.0030.02713.47
5.4.100.0010.03113.47
5.4.90.0050.02213.42
5.4.80.0030.02813.44
5.4.70.0020.03013.48
5.4.60.0080.02013.43
5.4.50.0050.02113.45
5.4.40.0020.03213.49
5.4.30.0040.02813.43
5.4.20.0070.02313.49
5.4.10.0040.02613.46
5.4.00.0010.02013.20
5.3.290.0030.01812.93
5.3.280.0050.02412.89
5.3.270.0020.02212.89
5.3.260.0060.02712.90
5.3.250.0090.02412.89
5.3.240.0040.03012.90
5.3.230.0080.02412.85
5.3.220.0070.01412.89
5.3.210.0050.01912.85
5.3.200.0070.02512.84
5.3.190.0050.01912.88
5.3.180.0030.03212.89
5.3.170.0040.01912.89
5.3.160.0050.02912.89
5.3.150.0040.02612.90
5.3.140.0030.02012.85
5.3.130.0030.02812.86
5.3.120.0040.02912.88
5.3.110.0020.02212.88
5.3.100.0060.02312.70
5.3.90.0040.01912.67
5.3.80.0020.02912.70
5.3.70.0070.01412.71
5.3.60.0010.03112.69
5.3.50.0060.01412.67
5.3.40.0060.02612.61
5.3.30.0030.01812.65
5.3.20.0050.02712.60
5.3.10.0060.02712.59
5.3.00.0030.01612.58
5.2.170.0000.06310.99
5.2.160.0070.05311.22
5.2.150.0000.03711.22
5.2.140.0030.06311.16
5.2.130.0070.05711.07
5.2.120.0070.06311.15
5.2.110.0000.04711.20
5.2.100.0000.03310.92
5.2.90.0030.04710.97
5.2.80.0000.04311.14
5.2.70.0030.06010.91
5.2.60.0000.05710.91
5.2.50.0030.05710.84
5.2.40.0030.03310.88
5.2.30.0000.03711.07
5.2.20.0000.06011.01
5.2.10.0100.05310.94
5.2.00.0000.06010.71
5.1.60.0000.04310.22
5.1.50.0000.05310.22
5.1.40.0070.05010.22
5.1.30.0000.05310.34
5.1.20.0030.05710.43
5.1.10.0000.03010.22
5.1.00.0070.02310.22
5.0.50.0070.04010.22
5.0.40.0030.04310.22
5.0.30.0070.06310.22
5.0.20.0000.04310.22
5.0.10.0030.02310.22
5.0.00.0000.03710.22
4.4.90.0030.02010.22
4.4.80.0000.03310.22
4.4.70.0070.01310.22
4.4.60.0030.02710.22
4.4.50.0000.02310.22
4.4.40.0000.03010.22
4.4.30.0070.03010.22
4.4.20.0000.02310.22
4.4.10.0000.02010.22
4.4.00.0030.03710.22
4.3.110.0000.01710.22
4.3.100.0000.02310.22
4.3.90.0000.02710.22
4.3.80.0000.05310.22
4.3.70.0000.01310.22
4.3.60.0030.03010.22
4.3.50.0000.03310.22
4.3.40.0000.03310.22
4.3.30.0070.03010.22
4.3.20.0070.03010.22
4.3.10.0000.02310.22
4.3.00.0000.03010.22

preferences:
46.45 ms | 401 KiB | 5 Q