3v4l.org

run code in 300+ PHP versions simultaneously
<html> <head> <title>Personal INFO</title> </head> <body> <form method="post" action="<?php echo $_SERVER['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> <?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'])) { $name = $_POST['name']; echo "User Has submitted the form and entered this name : <b> $name </b>"; echo "<br>You can use the following form again to enter a new name."; } 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 />"; } ?> </body> </html>

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)
5.4.140.0160.04412.05
5.4.130.0160.04512.04
5.4.120.0190.05412.00
5.4.110.0150.04212.00
5.4.100.0160.04412.00
5.4.90.0180.04211.99
5.4.80.0170.05612.00
5.4.70.0180.03911.99
5.4.60.0130.04611.99
5.4.50.0230.06711.99
5.4.40.0140.04511.98
5.4.30.0180.04411.98
5.4.20.0180.04611.97
5.4.10.0250.06611.98
5.4.00.0270.06311.47
5.3.240.0200.05812.72
5.3.230.0190.04312.71
5.3.220.0160.04512.68
5.3.210.0190.04412.68
5.3.200.0200.04212.68
5.3.190.0110.05012.68
5.3.180.0140.04612.67
5.3.170.0150.04512.67
5.3.160.0190.04312.67
5.3.150.0200.05612.67
5.3.140.0120.04812.66
5.3.130.0190.05712.66
5.3.120.0170.04512.66
5.3.110.0150.04512.66
5.3.100.0160.04612.12
5.3.90.0190.04212.08
5.3.80.0250.05212.07
5.3.70.0160.04512.08
5.3.60.0250.06512.06
5.3.50.0160.04312.00
5.3.40.0180.06012.00
5.3.30.0150.04311.94
5.3.20.0150.04311.72
5.3.10.0230.06611.69
5.3.00.0140.04211.67

preferences:
139.25 ms | 1386 KiB | 7 Q