3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Fname = $_POST["Fname"]; $Lname = $_POST["Lname"]; $gender = $_POST["gender"]; $food = $_POST["food"]; $quote = $_POST["quote"]; $education = $_POST["education"]; $TofD = $_POST["TofD"]; if (!isset($_POST['submit'])) { // if page is not submitted to itself echo the form ?> <html> <head> <title>Personal INFO</title> </head> <body> <form method="post" action="<?php echo $PHP_SELF;?>"> First Name:<input type="text" size="12" maxlength="12" name="Fname"><br /> Last Name:<input type="text" size="12" maxlength="36" name="Lname"><br /> Gender:<br /> Male:<input type="radio" value="Male" name="gender"><br /> Female:<input type="radio" value="Female" name="gender"><br /> Please choose type of residence:<br /> Steak:<input type="checkbox" value="Steak" name="food[]"><br /> Pizza:<input type="checkbox" value="Pizza" name="food[]"><br /> Chicken:<input type="checkbox" value="Chicken" name="food[]"><br /> <textarea rows="5" cols="20" name="quote" wrap="physical">Enter your favorite quote!</textarea><br /> Select a Level of Education:<br /> <select name="education"> <option value="Jr.High">Jr.High</option> <option value="HighSchool">HighSchool</option> <option value="College">College</option></select><br /> Select your favorite time of day:<br /> <select name="TofD" size="3"> <option value="Morning">Morning</option> <option value="Day">Day</option> <option value="Night">Night</option></select><br /> <input type="submit" value="submit" name="submit"> </form> <? } else { echo "Hello, ".$Fname." ".$Lname.".<br />"; echo "You are ".$gender.", and you like "; foreach ($food as $f) { echo $f."<br />"; } echo "<i>".$quote."</i><br />"; echo "You're favorite time is ".$TofD.", and you passed ".$education."!<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.60.0110.00416.63
8.3.50.0110.00821.89
8.3.40.0140.00018.71
8.3.30.0070.00719.07
8.3.20.0040.00420.37
8.3.10.0030.00522.03
8.3.00.0030.00619.51
8.2.180.0090.01216.88
8.2.170.0070.01022.96
8.2.160.0140.00020.43
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0000.00722.26
8.2.110.0060.00319.13
8.2.100.0080.00417.78
8.2.90.0030.00519.16
8.2.80.0000.00817.97
8.2.70.0000.00917.50
8.2.60.0030.00517.80
8.2.50.0000.00818.07
8.2.40.0040.00419.94
8.2.30.0030.00619.72
8.2.20.0000.00717.48
8.2.10.0000.00717.95
8.2.00.0050.00317.62
8.1.280.0110.00725.92
8.1.270.0070.00023.92
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00020.87
8.1.230.0000.01117.45
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0000.00917.22
8.1.190.0000.00817.10
8.1.180.0050.00518.10
8.1.170.0030.00618.60
8.1.160.0000.00721.90
8.1.150.0040.00418.54
8.1.140.0040.00417.21
8.1.130.0030.00317.77
8.1.120.0040.00417.38
8.1.110.0040.00417.21
8.1.100.0070.00417.33
8.1.90.0030.00417.41
8.1.80.0070.00017.26
8.1.70.0000.00717.36
8.1.60.0050.00317.48
8.1.50.0040.00417.41
8.1.40.0000.00917.43
8.1.30.0040.00417.51
8.1.20.0060.00317.59
8.1.10.0050.00317.40
8.1.00.0040.00417.37
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.31
8.0.270.0000.00817.10
8.0.260.0060.00017.11
8.0.250.0030.00316.99
8.0.240.0000.00716.95
8.0.230.0030.00316.95
8.0.220.0000.00716.85
8.0.210.0070.00016.97
8.0.200.0060.00316.97
8.0.190.0000.00816.93
8.0.180.0050.00316.98
8.0.170.0040.00416.95
8.0.160.0030.00316.91
8.0.150.0000.00816.85
8.0.140.0000.00716.88
8.0.130.0030.00313.36
8.0.120.0030.00516.86
8.0.110.0040.00416.73
8.0.100.0000.00716.77
8.0.90.0040.00416.78
8.0.80.0040.01116.88
8.0.70.0040.00416.81
8.0.60.0020.00516.92
8.0.50.0000.00716.89
8.0.30.0170.00617.08
8.0.20.0120.00717.40
8.0.10.0000.00916.92
8.0.00.0080.00916.56
7.4.330.0000.00515.15
7.4.320.0000.00616.48
7.4.300.0030.00316.40
7.4.290.0000.00616.39
7.4.280.0030.00516.36
7.4.270.0080.00016.38
7.4.260.0070.00016.46
7.4.250.0000.00816.32
7.4.240.0040.00416.41
7.4.230.0030.00316.29
7.4.220.0110.00816.39
7.4.210.0060.00816.52
7.4.200.0000.00716.38
7.4.190.0060.00016.59
7.4.160.0060.00916.29
7.4.150.0140.00317.40
7.4.140.0060.01117.86
7.4.130.0140.00716.39
7.4.120.0060.01216.37
7.4.110.0080.01116.25
7.4.100.0070.01116.42
7.4.90.0120.00616.49
7.4.80.0030.01319.39
7.4.70.0040.01316.46
7.4.60.0000.01816.36
7.4.50.0040.00416.23
7.4.40.0120.00316.41
7.4.30.0080.01216.30
7.4.00.0080.00014.90
7.3.330.0030.00313.31
7.3.320.0000.00513.19
7.3.310.0000.00716.27
7.3.300.0040.00416.23
7.3.290.0060.00916.18
7.3.280.0070.01216.22
7.3.270.0090.00917.40
7.3.260.0160.00316.42
7.3.250.0100.00716.28
7.3.240.0110.01216.20
7.3.230.0080.00816.39
7.3.210.0100.00616.49
7.3.200.0080.01419.39
7.3.190.0120.00816.43
7.3.180.0090.00616.41
7.3.170.0000.01516.27
7.3.160.0060.00916.26
7.3.120.0060.00914.63
7.3.10.0110.00416.48
7.3.00.0110.00416.63
7.2.330.0070.01116.15
7.2.320.0070.01116.49
7.2.310.0060.01116.51
7.2.300.0120.00316.50
7.2.290.0070.01016.27
7.2.130.0070.01116.72
7.2.120.0060.00616.88
7.2.110.0070.00716.90
7.2.100.0000.01116.81
7.2.90.0100.00716.71
7.2.80.0090.00416.79
7.2.70.0030.00816.80
7.2.60.0060.00716.80
7.2.50.0040.01116.64
7.2.40.0070.00416.93
7.2.30.0090.00617.04
7.2.20.0120.00316.89
7.2.10.0070.00716.61
7.2.00.0020.00918.23
7.1.250.0100.00015.72
7.1.200.0060.00615.74
7.1.100.0000.01318.08
7.1.70.0070.00716.96
7.1.60.0200.00319.46
7.1.50.0030.02116.82
7.1.00.0030.07722.25
7.0.200.0030.00516.53
7.0.140.0030.07322.09
7.0.60.0100.07721.66
7.0.50.0030.04717.80
7.0.40.0030.05020.08
7.0.30.0300.07720.17
7.0.20.0300.08020.34
7.0.10.0100.08720.12
7.0.00.0170.07720.16
5.6.280.0070.07321.04
5.6.210.0070.08720.48
5.6.200.0030.04318.19
5.6.190.0100.08320.43
5.6.180.0600.06720.35
5.6.170.0130.05720.48
5.6.160.0000.04320.44
5.6.150.0130.06318.12
5.6.140.0170.07318.22
5.6.130.0170.07318.20
5.6.120.0100.04020.99
5.6.110.0030.06020.95
5.6.100.0100.08020.95
5.6.90.0030.06021.04
5.6.80.0070.04020.40
5.5.350.0000.04720.52
5.5.340.0030.08717.89
5.5.330.0030.04320.19
5.5.320.0070.04320.28
5.5.310.0330.05320.21
5.5.300.0070.08017.91
5.5.290.0100.06717.88
5.5.280.0000.05720.68
5.5.270.0100.08320.95
5.5.260.0100.07020.97
5.5.250.0170.07020.71
5.5.240.0100.06720.24
5.4.450.0230.07719.39
5.4.440.0330.07319.13
5.4.430.0130.04719.20
5.4.420.0200.03719.41
5.4.410.0170.05019.07
5.4.400.0230.04719.17
5.4.390.0270.06019.25
5.4.380.0230.05319.08
5.4.370.0230.07319.13
5.4.360.0200.07319.06
5.4.350.0200.07019.09
5.4.340.0200.04719.09
5.4.320.0270.03318.88
5.4.310.0170.07719.08
5.4.300.0270.05719.08
5.4.290.0300.06318.78
5.4.280.0270.03718.88
5.4.270.0130.05019.08
5.4.260.0400.04319.25
5.4.250.0300.04719.24
5.4.240.0300.03018.94
5.4.230.0230.03719.07
5.4.220.0300.07318.78
5.4.210.0170.07019.03
5.4.200.0330.06019.08
5.4.190.0230.07019.21
5.4.180.0230.05019.24
5.4.170.0230.07019.07
5.4.160.0230.07318.89
5.4.150.0230.06019.21
5.4.140.0230.07016.57
5.4.130.0200.03716.54
5.4.120.0300.04016.37
5.4.110.0200.04316.06
5.4.100.0230.06716.41
5.4.90.0270.04016.39
5.4.80.0230.05716.21
5.4.70.0270.05016.32
5.4.60.0230.05316.28
5.4.50.0270.07016.36
5.4.40.0300.06716.32
5.4.30.0200.06016.20
5.4.20.0270.05316.04
5.4.10.0330.06016.39
5.4.00.0270.06316.01
5.3.290.0200.07014.76
5.3.280.0200.04314.51
5.3.270.0130.04714.47
5.3.260.0300.05014.59
5.3.250.0170.07314.46
5.3.240.0300.03714.56
5.3.230.0270.06714.41
5.3.220.0330.06014.48
5.3.210.0170.07014.49
5.3.200.0200.06014.43
5.3.190.0270.05014.43
5.3.180.0230.07014.53
5.3.170.0230.07314.41
5.3.160.0200.03714.51
5.3.150.0170.08014.52
5.3.140.0230.06714.53
5.3.130.0130.07314.41
5.3.120.0230.06714.39
5.3.110.0200.07714.50
5.3.100.0270.06713.97
5.3.90.0270.05313.97
5.3.80.0270.05014.02
5.3.70.0270.03314.00
5.3.60.0270.06313.94
5.3.50.0200.07313.81
5.3.40.0230.04313.91
5.3.30.0230.07013.71
5.3.20.0130.06313.72
5.3.10.0230.07313.59
5.3.00.0270.06313.60
5.2.170.0230.05312.40
5.2.160.0200.05712.40
5.2.150.0300.03712.40
5.2.140.0200.05712.40
5.2.130.0100.05312.40
5.2.120.0270.05012.40
5.2.110.0270.03712.40
5.2.100.0270.05312.40
5.2.90.0230.06012.40
5.2.80.0230.05012.40
5.2.70.0200.05012.40
5.2.60.0200.06012.40
5.2.50.0170.06012.40
5.2.40.0130.04312.40
5.2.30.0070.04312.40
5.2.20.0200.03312.40
5.2.10.0200.05312.40
5.2.00.0200.04712.40
5.1.60.0200.05012.40
5.1.50.0170.03012.40
5.1.40.0230.04312.40
5.1.30.0200.04012.40
5.1.20.0200.05012.40
5.1.10.0100.04312.40
5.1.00.0070.03712.40
5.0.50.0030.03012.40
5.0.40.0170.04012.40
5.0.30.0100.06712.40
5.0.20.0100.02012.40
5.0.10.0070.02012.40
5.0.00.0070.07012.40
4.4.90.0030.02012.40
4.4.80.0100.03712.40
4.4.70.0170.02312.40
4.4.60.0100.02312.40
4.4.50.0100.03312.40
4.4.40.0170.03312.40
4.4.30.0100.02712.40
4.4.20.0030.03312.40
4.4.10.0100.02012.40
4.4.00.0070.05012.40
4.3.110.0100.02712.40
4.3.100.0070.02312.40
4.3.90.0070.02012.40
4.3.80.0100.05312.40
4.3.70.0100.03312.40
4.3.60.0100.03312.40
4.3.50.0070.03312.40
4.3.40.0070.05012.40
4.3.30.0070.03312.40
4.3.20.0030.04012.40
4.3.10.0070.03712.40
4.3.00.0030.03312.40

preferences:
42.75 ms | 401 KiB | 5 Q