3v4l.org

run code in 300+ PHP versions simultaneously
<html> <head> <title>Simple registration form in PHP</title> </head> <body> <form method="post" action="submit-form.php"> 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']; $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."; ?> </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)
8.3.60.0080.00818.56
8.3.50.0130.00321.93
8.3.40.0070.00718.84
8.3.30.0000.01418.67
8.3.20.0040.00418.90
8.3.10.0040.00419.46
8.3.00.0080.00023.65
8.2.180.0110.01116.50
8.2.170.0170.00322.96
8.2.160.0130.00320.34
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00319.76
8.2.110.0100.00019.48
8.2.100.0060.00617.72
8.2.90.0040.00417.88
8.2.80.0030.00518.90
8.2.70.0060.00317.80
8.2.60.0040.00418.04
8.2.50.0030.00518.10
8.2.40.0060.00620.42
8.2.30.0030.00520.46
8.2.20.0050.00317.81
8.2.10.0070.00017.84
8.2.00.0000.00917.76
8.1.280.0040.01125.92
8.1.270.0000.00723.99
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0000.01123.81
8.1.230.0080.00421.04
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0060.00317.63
8.1.190.0090.00017.22
8.1.180.0050.00318.10
8.1.170.0050.00318.48
8.1.160.0000.00722.11
8.1.150.0040.00418.73
8.1.140.0070.00017.43
8.1.130.0030.00317.77
8.1.120.0120.00017.53
8.1.110.0000.00717.48
8.1.100.0000.00817.41
8.1.90.0030.00517.39
8.1.80.0040.00417.38
8.1.70.0070.00017.48
8.1.60.0030.00617.52
8.1.50.0000.00817.39
8.1.40.0030.00517.54
8.1.30.0040.00417.51
8.1.20.0000.00817.68
8.1.10.0040.00417.50
8.1.00.0040.00417.46
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0080.00018.46
8.0.270.0000.00817.28
8.0.260.0070.00016.93
8.0.250.0000.00716.98
8.0.240.0040.00416.89
8.0.230.0030.00316.94
8.0.220.0000.00717.03
8.0.210.0070.00016.90
8.0.200.0000.00617.09
8.0.190.0040.00417.02
8.0.180.0000.00717.04
8.0.170.0000.00716.90
8.0.160.0040.00416.96
8.0.150.0070.00016.99
8.0.140.0040.00416.98
8.0.130.0000.00813.46
8.0.120.0000.00716.94
8.0.110.0040.00416.98
8.0.100.0040.00416.92
8.0.90.0000.00716.77
8.0.80.0070.00716.92
8.0.70.0040.00416.85
8.0.60.0000.00716.78
8.0.50.0000.00716.88
8.0.30.0170.00217.14
8.0.20.0110.00817.40
8.0.10.0050.00217.15
8.0.00.0180.00616.73
7.4.330.0050.00014.71
7.4.320.0000.00716.58
7.4.300.0000.00616.59
7.4.290.0030.00316.54
7.4.280.0040.00416.47
7.4.270.0040.00416.65
7.4.260.0000.00613.42
7.4.250.0040.00416.54
7.4.240.0000.00816.54
7.4.230.0000.00716.60
7.4.220.0130.01016.57
7.4.210.0080.00716.66
7.4.200.0000.00716.35
7.4.190.0000.00716.52
7.4.160.0060.01116.62
7.4.150.0080.01117.40
7.4.140.0190.00417.86
7.4.130.0070.01516.61
7.4.120.0060.01116.57
7.4.110.0110.00816.60
7.4.100.0040.01716.61
7.4.90.0060.01116.59
7.4.80.0030.01519.39
7.4.70.0080.00816.63
7.4.60.0140.00416.54
7.4.50.0030.00616.48
7.4.40.0170.00022.52
7.4.30.0100.00616.62
7.4.10.0000.01514.95
7.4.00.0020.01614.96
7.3.330.0000.00513.21
7.3.320.0000.00513.18
7.3.310.0000.00716.14
7.3.300.0030.00316.23
7.3.290.0100.00316.28
7.3.280.0090.00816.29
7.3.270.0130.00317.40
7.3.260.0090.00818.24
7.3.250.0110.00616.49
7.3.240.0110.01116.38
7.3.230.0060.01116.57
7.3.210.0170.00016.52
7.3.200.0130.00319.39
7.3.190.0060.01516.43
7.3.180.0100.00616.41
7.3.170.0070.01416.62
7.3.160.0150.00016.55
7.3.130.0120.00614.88
7.3.120.0080.00515.01
7.3.110.0030.01014.57
7.3.100.0140.00014.65
7.3.90.0030.01014.91
7.3.80.0030.01015.16
7.3.70.0040.00714.89
7.3.60.0060.00915.08
7.3.50.0070.00714.89
7.3.40.0070.00714.96
7.3.30.0090.00314.86
7.3.20.0090.00316.61
7.3.10.0040.00416.65
7.3.00.0060.01016.85
7.2.330.0110.00716.56
7.2.320.0070.01116.34
7.2.310.0140.01016.66
7.2.300.0140.00716.37
7.2.290.0130.00316.47
7.2.260.0110.00814.93
7.2.250.0090.00915.26
7.2.240.0070.00715.22
7.2.230.0060.00615.09
7.2.220.0030.01415.09
7.2.210.0070.00315.13
7.2.200.0040.00714.92
7.2.190.0040.01115.09
7.2.180.0100.00314.91
7.2.170.0070.00415.02
7.2.160.0060.00914.73
7.2.150.0030.01216.83
7.2.140.0050.00516.77
7.2.130.0060.00916.96
7.2.120.0120.00316.99
7.2.110.0030.01016.86
7.2.100.0000.01016.88
7.2.90.0070.01016.75
7.2.80.0030.00716.80
7.2.70.0040.01016.77
7.2.60.0030.00616.95
7.2.50.0070.00416.66
7.2.40.0100.00316.74
7.2.30.0040.01116.92
7.2.20.0060.00916.84
7.2.10.0070.00417.13
7.2.00.0040.00817.97
7.1.330.0030.00715.95
7.1.320.0040.00415.80
7.1.310.0030.00915.79
7.1.300.0080.00815.70
7.1.290.0090.00015.64
7.1.280.0060.00615.88
7.1.270.0110.00415.69
7.1.260.0000.01215.49
7.1.250.0120.00315.82
7.1.240.0030.01015.93
7.1.230.0030.00915.46
7.1.220.0170.00015.89
7.1.210.0030.00915.80
7.1.200.0090.00315.51
7.1.190.0040.01115.60
7.1.180.0050.00315.66
7.1.170.0070.00415.75
7.1.160.0060.00315.66
7.1.150.0000.01315.73
7.1.140.0140.00015.48
7.1.130.0070.00415.45
7.1.120.0070.01015.70
7.1.110.0080.00415.75
7.1.100.0070.00616.93
7.1.90.0070.00715.63
7.1.80.0080.00316.02
7.1.70.0040.00516.20
7.1.60.0030.01517.61
7.1.50.0100.00716.33
7.1.40.0090.00015.61
7.1.30.0060.01015.66
7.1.20.0090.00615.75
7.1.10.0000.01515.63
7.1.00.0040.03318.97
7.0.330.0030.00915.21
7.0.320.0000.00915.36
7.0.310.0000.01215.33
7.0.300.0080.00415.18
7.0.290.0120.00015.33
7.0.280.0060.00615.00
7.0.270.0110.00415.45
7.0.260.0060.00315.39
7.0.250.0000.01315.49
7.0.240.0060.00915.59
7.0.230.0030.01015.15
7.0.220.0000.01315.38
7.0.210.0000.00815.29
7.0.200.0040.00816.02
7.0.190.0030.01215.41
7.0.180.0040.01115.41
7.0.170.0070.00615.23
7.0.160.0040.00415.16
7.0.150.0030.00915.22
7.0.140.0040.03918.83
7.0.130.0100.00015.34
7.0.120.0090.00015.54
7.0.110.0030.01015.44
7.0.100.0110.00015.46
7.0.90.0050.00515.50
7.0.80.0070.00315.26
7.0.70.0040.00415.20
7.0.60.0050.02318.59
7.0.50.0020.02218.83
7.0.40.0030.02216.83
7.0.30.0020.02716.64
7.0.20.0020.02716.70
7.0.10.0020.02116.78
7.0.00.0040.02416.74
5.6.400.0040.01214.31
5.6.390.0110.00014.67
5.6.380.0070.00713.92
5.6.370.0060.00914.46
5.6.360.0040.01114.66
5.6.350.0090.00614.40
5.6.340.0000.01114.47
5.6.330.0000.01114.31
5.6.320.0070.00714.44
5.6.310.0000.01014.23
5.6.300.0120.00314.27
5.6.290.0000.01214.32
5.6.280.0050.03617.81
5.6.270.0000.01514.50
5.6.260.0110.00314.41
5.6.250.0080.00614.66
5.6.240.0000.01214.23
5.6.230.0060.00614.19
5.6.220.0040.01114.12
5.6.210.0050.03317.52
5.6.200.0000.03017.71
5.6.190.0050.02017.59
5.6.180.0080.01817.57
5.6.170.0080.01617.70
5.6.160.0000.02817.58
5.6.150.0000.02317.63
5.6.140.0040.02417.80
5.6.130.0070.02517.55
5.6.120.0050.02017.58
5.6.110.0040.02017.83
5.6.100.0050.02017.59
5.6.90.0020.02117.70
5.6.80.0040.01917.19
5.6.70.0050.02217.34
5.6.60.0020.02417.35
5.6.50.0070.03817.46
5.6.40.0070.03917.31
5.6.30.0050.04317.39
5.6.20.0030.04717.46
5.6.10.0020.04617.38
5.6.00.0080.03817.34
5.5.380.0120.00014.26
5.5.370.0060.00614.18
5.5.360.0030.00914.29
5.5.350.0050.02317.51
5.5.340.0050.02517.54
5.5.330.0020.02217.40
5.5.320.0030.02717.30
5.5.310.0050.02117.60
5.5.300.0040.02317.41
5.5.290.0040.02517.60
5.5.280.0030.02117.43
5.5.270.0020.02017.60
5.5.260.0020.02317.32
5.5.250.0020.02317.35
5.5.240.0000.02217.28
5.5.230.0100.01317.23
5.5.220.0060.03117.19
5.5.210.0020.03117.17
5.5.200.0020.03017.36
5.5.190.0080.03717.21
5.5.180.0120.04017.15
5.5.170.0030.00614.06
5.5.160.0050.04217.17
5.5.150.0070.03017.27
5.5.140.0040.04417.22
5.5.130.0110.04217.05
5.5.120.0060.04117.25
5.5.110.0100.03817.10
5.5.100.0050.04217.04
5.5.90.0060.04117.10
5.5.80.0090.03516.98
5.5.70.0060.04017.00
5.5.60.0030.03517.05
5.5.50.0090.03816.96
5.5.40.0060.04017.04
5.5.30.0040.03717.12
5.5.20.0050.04517.02
5.5.10.0100.03417.08
5.5.00.0100.03716.93
5.4.450.0020.02315.82
5.4.440.0030.02115.81
5.4.430.0000.02015.83
5.4.420.0040.01715.83
5.4.410.0000.02115.72
5.4.400.0000.02315.75
5.4.390.0030.02315.64
5.4.380.0020.02015.65
5.4.370.0020.02815.67
5.4.360.0050.02515.73
5.4.350.0070.03815.62
5.4.340.0120.03715.67
5.4.330.0030.00612.29
5.4.320.0040.02915.72
5.4.310.0030.04315.72
5.4.300.0020.03915.63
5.4.290.0030.03515.64
5.4.280.0060.03615.63
5.4.270.0070.03815.72
5.4.260.0050.03415.57
5.4.250.0060.03515.56
5.4.240.0050.03415.56
5.4.230.0030.04215.68
5.4.220.0050.03715.72
5.4.210.0080.03515.56
5.4.200.0050.04015.64
5.4.190.0050.03315.63
5.4.180.0040.03815.73
5.4.170.0030.03215.67
5.4.160.0050.04015.56
5.4.150.0040.03915.71
5.4.140.0070.03914.20
5.4.130.0070.03714.24
5.4.120.0030.04014.25
5.4.110.0070.02514.27
5.4.100.0020.04114.35
5.4.90.0030.04214.27
5.4.80.0030.03214.28
5.4.70.0020.03714.27
5.4.60.0030.03914.24
5.4.50.0030.02314.33
5.4.40.0090.03214.28
5.4.30.0060.03314.29
5.4.20.0050.03514.25
5.4.10.0030.03714.24
5.4.00.0020.04014.01
5.3.290.0060.04013.46
5.3.280.0020.04313.42
5.3.270.0070.03713.45
5.3.260.0070.04013.44
5.3.250.0050.04013.44
5.3.240.0050.03213.39
5.3.230.0020.04313.40
5.3.220.0050.02713.40
5.3.210.0040.04013.34
5.3.200.0100.02713.41
5.3.190.0020.04213.42
5.3.180.0030.03513.41
5.3.170.0040.03913.39
5.3.160.0050.03913.42
5.3.150.0030.03913.42
5.3.140.0000.03613.37
5.3.130.0020.04013.41
5.3.120.0030.04313.31
5.3.110.0040.04013.33
5.3.100.0080.03613.13
5.3.90.0030.03913.13
5.3.80.0020.02413.14
5.3.70.0030.03813.13
5.3.60.0080.03713.13
5.3.50.0020.03713.09
5.3.40.0000.03713.00
5.3.30.0050.03513.09
5.3.20.0050.04212.96
5.3.10.0050.03512.96
5.3.00.0020.04012.94
5.2.170.0070.05310.93
5.2.160.0030.06011.14
5.2.150.0000.06310.92
5.2.140.0030.06011.07
5.2.130.0070.06011.05
5.2.120.0030.05711.08
5.2.110.0000.06311.08
5.2.100.0070.05011.11
5.2.90.0000.07711.09
5.2.80.0030.06011.10
5.2.70.0000.06311.11
5.2.60.0070.06010.96
5.2.50.0030.05710.84
5.2.40.0100.04311.02
5.2.30.0000.06710.95
5.2.20.0130.05710.93
5.2.10.0000.05710.89
5.2.00.0000.06310.57
5.1.60.0030.04710.00
5.1.50.0000.05010.03
5.1.40.0000.04310.02
5.1.30.0070.05310.23
5.1.20.0030.05010.35
5.1.10.0030.05310.11
5.1.00.0030.0539.90
5.0.50.0030.0379.43
5.0.40.0000.0479.46
5.0.30.0000.0679.50
5.0.20.0070.0439.52
5.0.10.0070.0439.55
5.0.00.0070.0639.58
4.4.90.0000.0409.13
4.4.80.0000.0339.17
4.4.70.0000.0379.22
4.4.60.0000.0379.23
4.4.50.0070.0309.24
4.4.40.0000.0509.28
4.4.30.0030.0339.30
4.4.20.0030.0379.36
4.4.10.0000.0339.41
4.4.00.0000.0579.45
4.3.110.0000.0339.46
4.3.100.0000.0379.51
4.3.90.0000.0339.53
4.3.80.0000.0579.58
4.3.70.0030.0339.58
4.3.60.0000.0339.58
4.3.50.0000.0379.58
4.3.40.0000.0509.58
4.3.30.0000.0409.58
4.3.20.0070.0309.58
4.3.10.0000.0379.58
4.3.00.0070.0339.58

preferences:
45.41 ms | 401 KiB | 5 Q