3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <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.0140.00416.63
8.3.50.0100.01221.95
8.3.40.0150.00018.84
8.3.30.0160.00319.16
8.3.20.0000.00820.29
8.3.10.0050.00321.77
8.3.00.0080.00021.02
8.2.180.0150.00318.42
8.2.170.0070.00722.96
8.2.160.0030.01320.53
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0020.00526.16
8.2.120.0040.00422.17
8.2.110.0060.00322.21
8.2.100.0090.00317.88
8.2.90.0060.00319.24
8.2.80.0000.00818.05
8.2.70.0040.00417.75
8.2.60.0000.00917.93
8.2.50.0050.00318.07
8.2.40.0050.00318.22
8.2.30.0080.00018.24
8.2.20.0040.00417.85
8.2.10.0040.00417.80
8.2.00.0080.00017.76
8.1.280.0080.00625.92
8.1.270.0000.00823.83
8.1.260.0030.00726.35
8.1.250.0080.00028.09
8.1.240.0090.00023.88
8.1.230.0040.00719.15
8.1.220.0060.00317.76
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0080.00017.40
8.1.180.0040.00418.10
8.1.170.0080.00018.63
8.1.160.0030.00522.02
8.1.150.0030.00518.52
8.1.140.0030.00517.42
8.1.130.0000.00717.88
8.1.120.0000.00817.51
8.1.110.0000.00817.44
8.1.100.0000.00717.38
8.1.90.0030.00717.48
8.1.80.0070.00017.53
8.1.70.0000.00717.39
8.1.60.0060.00317.62
8.1.50.0000.00717.54
8.1.40.0060.00317.47
8.1.30.0050.00317.56
8.1.20.0050.00317.66
8.1.10.0080.00017.51
8.1.00.0040.00417.45
8.0.300.0030.00318.77
8.0.290.0000.00717.18
8.0.280.0040.00418.45
8.0.270.0040.00417.33
8.0.260.0030.00316.93
8.0.250.0000.00717.05
8.0.240.0000.00716.99
8.0.230.0070.00017.06
8.0.220.0000.00716.98
8.0.210.0050.00316.98
8.0.200.0070.00017.08
8.0.190.0080.00017.06
8.0.180.0070.00016.95
8.0.170.0040.00416.87
8.0.160.0000.00716.96
8.0.150.0000.00716.84
8.0.140.0120.00016.88
8.0.130.0000.00613.39
8.0.120.0020.00516.92
8.0.110.0040.00416.95
8.0.100.0070.00016.91
8.0.90.0000.00716.79
8.0.80.0030.01217.00
8.0.70.0000.00816.91
8.0.60.0000.00717.03
8.0.50.0000.00816.73
8.0.30.0110.00817.30
8.0.20.0090.01217.40
8.0.10.0040.00417.08
8.0.00.0090.00816.73
7.4.330.0000.00515.05
7.4.320.0060.00016.53
7.4.300.0040.00416.60
7.4.290.0070.00016.57
7.4.280.0040.00416.59
7.4.270.0000.00616.41
7.4.260.0060.00316.64
7.4.250.0040.00416.55
7.4.240.0050.00216.52
7.4.230.0000.00716.50
7.4.220.0090.00616.56
7.4.210.0120.00516.60
7.4.200.0000.00716.70
7.4.190.0070.00016.71
7.4.160.0070.01016.55
7.4.150.0040.01517.40
7.4.140.0200.01617.86
7.4.130.0060.01116.51
7.4.120.0030.01316.47
7.4.110.0080.00816.47
7.4.100.0120.00616.32
7.4.90.0070.01016.42
7.4.80.0100.01019.39
7.4.70.0110.01316.54
7.4.60.0090.00816.55
7.4.50.0040.00416.57
7.4.40.0110.00722.77
7.4.30.0160.00016.66
7.4.10.0030.00714.81
7.4.00.0030.01415.06
7.3.330.0030.00313.16
7.3.320.0000.00513.20
7.3.310.0030.00316.34
7.3.300.0030.00316.29
7.3.290.0070.00716.25
7.3.280.0100.00616.25
7.3.270.0140.00317.40
7.3.260.0060.01016.53
7.3.250.0090.00916.54
7.3.240.0120.00616.24
7.3.230.0060.01216.39
7.3.210.0100.00716.13
7.3.200.0060.01619.39
7.3.190.0130.00916.43
7.3.180.0110.00916.54
7.3.170.0130.00716.57
7.3.160.0090.00616.68
7.3.130.0110.00714.88
7.3.120.0080.01014.79
7.3.110.0080.00814.70
7.3.100.0030.01014.88
7.3.90.0040.01114.92
7.3.80.0100.00714.92
7.3.70.0030.01014.76
7.3.60.0030.00614.76
7.3.50.0070.00714.85
7.3.40.0000.01114.60
7.3.30.0000.01314.92
7.3.20.0070.00416.63
7.3.10.0070.00716.69
7.3.00.0020.01216.71
7.2.330.0110.00516.74
7.2.320.0130.00416.77
7.2.310.0070.01416.88
7.2.300.0090.00616.81
7.2.290.0100.00716.68
7.2.260.0030.01314.81
7.2.250.0090.00614.68
7.2.240.0090.00615.11
7.2.230.0090.00914.97
7.2.220.0070.00715.21
7.2.210.0030.00714.77
7.2.200.0040.01214.92
7.2.190.0030.00814.99
7.2.180.0070.00714.96
7.2.170.0030.01015.06
7.2.160.0030.00714.93
7.2.150.0030.00916.83
7.2.140.0070.01016.88
7.2.130.0060.00616.79
7.2.120.0030.01016.84
7.2.110.0050.01016.86
7.2.100.0070.00816.81
7.2.90.0060.00716.88
7.2.80.0050.01016.70
7.2.70.0090.00317.06
7.2.60.0080.00616.93
7.2.50.0050.00716.97
7.2.40.0060.00616.87
7.2.30.0060.00916.83
7.2.20.0050.01116.92
7.2.10.0070.00716.87
7.2.00.0080.00817.49
7.1.330.0060.00615.84
7.1.320.0070.00715.40
7.1.310.0080.00315.73
7.1.300.0040.00815.55
7.1.290.0040.01115.57
7.1.280.0000.01315.70
7.1.270.0040.00415.67
7.1.260.0060.00315.68
7.1.250.0050.00915.78
7.1.240.0030.00915.34
7.1.230.0000.00915.73
7.1.220.0100.00715.69
7.1.210.0070.01115.66
7.1.200.0030.00915.83
7.1.190.0030.00715.82
7.1.180.0000.01015.82
7.1.170.0110.00415.82
7.1.160.0070.00415.70
7.1.150.0030.01015.83
7.1.140.0030.01315.83
7.1.130.0080.00415.76
7.1.120.0040.01115.59
7.1.110.0110.00315.96
7.1.100.0050.01016.86
7.1.90.0040.00915.52
7.1.80.0030.01015.66
7.1.70.0000.00916.28
7.1.60.0080.00817.46
7.1.50.0040.01016.06
7.1.40.0070.00715.85
7.1.30.0060.00615.97
7.1.20.0040.01115.31
7.1.10.0090.00915.46
7.1.00.0060.03819.17
7.0.330.0060.00915.36
7.0.320.0030.00615.36
7.0.310.0130.00015.30
7.0.300.0080.00815.07
7.0.290.0100.00315.16
7.0.280.0060.00615.47
7.0.270.0100.00715.49
7.0.260.0030.01315.04
7.0.250.0030.00615.20
7.0.240.0070.00715.27
7.0.230.0060.00615.47
7.0.220.0090.00615.21
7.0.210.0060.00315.16
7.0.200.0030.00616.02
7.0.190.0110.00315.07
7.0.180.0070.00315.27
7.0.170.0070.00715.48
7.0.160.0070.01015.39
7.0.150.0090.00915.27
7.0.140.0040.03618.73
7.0.130.0040.01115.41
7.0.120.0110.00315.23
7.0.110.0020.02917.75
7.0.100.0020.04817.69
7.0.90.0120.02817.68
7.0.80.0050.02617.72
7.0.70.0130.02117.75
7.0.60.0030.05117.71
7.0.50.0030.04517.78
7.0.40.0100.03816.64
7.0.30.0070.04116.62
7.0.20.0100.03616.49
7.0.10.0050.04316.68
7.0.00.0110.04216.58
5.6.400.0050.00514.57
5.6.390.0030.01014.34
5.6.380.0060.01214.48
5.6.370.0040.00714.45
5.6.360.0000.00814.29
5.6.350.0100.00713.98
5.6.340.0040.01114.52
5.6.330.0070.00714.38
5.6.320.0040.00814.77
5.6.310.0000.01514.38
5.6.300.0090.00614.61
5.6.290.0080.00814.23
5.6.280.0030.04217.72
5.6.270.0150.00014.36
5.6.260.0110.04017.36
5.6.250.0070.04317.46
5.6.240.0040.03217.51
5.6.230.0080.04317.46
5.6.220.0110.02317.53
5.6.210.0080.04017.49
5.6.200.0070.04717.50
5.6.190.0100.02617.66
5.6.180.0070.04317.67
5.6.170.0100.04017.61
5.6.160.0080.04817.39
5.6.150.0040.04117.55
5.6.140.0110.03517.50
5.6.130.0070.04417.45
5.6.120.0020.05317.46
5.6.110.0070.02717.49
5.6.100.0050.04717.45
5.6.90.0050.04417.45
5.6.80.0070.03817.12
5.6.70.0130.03817.14
5.6.60.0050.04417.18
5.6.50.0030.03617.08
5.6.40.0050.02816.95
5.6.30.0070.03217.19
5.6.20.0030.02717.16
5.6.10.0110.03817.13
5.6.00.0030.04817.11
5.5.380.0050.04516.00
5.5.370.0050.04215.89
5.5.360.0020.04915.91
5.5.350.0020.04015.84
5.5.340.0060.03116.19
5.5.330.0080.04215.92
5.5.320.0030.04416.07
5.5.310.0070.02615.97
5.5.300.0050.02716.18
5.5.290.0010.03616.01
5.5.280.0070.04416.20
5.5.270.0080.02616.30
5.5.260.0070.04515.95
5.5.250.0080.04115.93
5.5.240.0070.03715.62
5.5.230.0050.04315.62
5.5.220.0100.03315.68
5.5.210.0070.04315.82
5.5.200.0080.04515.67
5.5.190.0020.02715.77
5.5.180.0020.04615.85
5.5.170.0040.01414.38
5.5.160.0090.03915.70
5.5.150.0100.03715.70
5.5.140.0030.03815.77
5.5.130.0070.03815.86
5.5.120.0000.04915.89
5.5.110.0080.04315.90
5.5.100.0070.04115.77
5.5.90.0090.03515.61
5.5.80.0010.04115.61
5.5.70.0050.04515.67
5.5.60.0040.03615.57
5.5.50.0070.03915.65
5.5.40.0050.02615.59
5.5.30.0060.04015.63
5.5.20.0080.04115.63
5.5.10.0070.04115.76
5.5.00.0090.03615.83
5.4.450.0030.02815.28
5.4.440.0070.02515.27
5.4.430.0050.04515.36
5.4.420.0100.03715.35
5.4.410.0020.03015.17
5.4.400.0050.02515.23
5.4.390.0070.02315.10
5.4.380.0080.03815.24
5.4.370.0000.04615.13
5.4.360.0130.03315.12
5.4.350.0040.02615.11
5.4.340.0070.03915.16
5.4.330.0000.01611.21
5.4.320.0000.04115.12
5.4.310.0050.04115.08
5.4.300.0120.03515.14
5.4.290.0150.03015.08
5.4.280.0110.03615.11
5.4.270.0050.04315.14
5.4.260.0050.04015.07
5.4.250.0020.03915.11
5.4.240.0050.04215.10
5.4.230.0050.03615.15
5.4.220.0110.02015.16
5.4.210.0020.04315.11
5.4.200.0050.03815.07
5.4.190.0050.02515.14
5.4.180.0120.03715.14
5.4.170.0050.03315.18
5.4.160.0020.02315.15
5.4.150.0030.02715.10
5.4.140.0050.04113.83
5.4.130.0030.04213.70
5.4.120.0110.03613.83
5.4.110.0080.03713.80
5.4.100.0100.02313.86
5.4.90.0080.03713.75
5.4.80.0040.02213.84
5.4.70.0070.04113.74
5.4.60.0130.03313.71
5.4.50.0020.02413.79
5.4.40.0010.03113.80
5.4.30.0090.03513.85
5.4.20.0080.03313.78
5.4.10.0050.03813.68
5.4.00.0040.03913.51
5.3.290.0020.03012.86
5.3.280.0070.04012.94
5.3.270.0070.04012.95
5.3.260.0050.02712.89
5.3.250.0070.04012.85
5.3.240.0040.02712.83
5.3.230.0060.03912.87
5.3.220.0030.04012.89
5.3.210.0020.04512.81
5.3.200.0060.04112.89
5.3.190.0050.04212.78
5.3.180.0080.02512.86
5.3.170.0020.03112.83
5.3.160.0060.03312.82
5.3.150.0020.03412.94
5.3.140.0030.03512.83
5.3.130.0120.02012.81
5.3.120.0050.03212.88
5.3.110.0000.04612.89
5.3.100.0080.03812.52
5.3.90.0050.04012.55
5.3.80.0130.03212.51
5.3.70.0070.03712.63
5.3.60.0050.02412.62
5.3.50.0050.03812.62
5.3.40.0060.03812.63
5.3.30.0070.03212.52
5.3.20.0050.02312.38
5.3.10.0030.04012.40
5.3.00.0030.02312.37
5.2.170.0070.03012.10
5.2.160.0030.05012.10
5.2.150.0030.06312.10
5.2.140.0000.03312.10
5.2.130.0030.06312.10
5.2.120.0000.04712.10
5.2.110.0030.06012.10
5.2.100.0030.06012.10
5.2.90.0030.04312.10
5.2.80.0030.06012.10
5.2.70.0030.05712.10
5.2.60.0000.06712.10
5.2.50.0000.05312.10
5.2.40.0030.05312.10
5.2.30.0100.05012.10
5.2.20.0070.06012.10
5.2.10.0070.04712.10
5.2.00.0100.05312.10
5.1.60.0070.05312.10
5.1.50.0070.05712.10
5.1.40.0030.05312.10
5.1.30.0070.02712.10
5.1.20.0100.04712.10
5.1.10.0130.04012.10
5.1.00.0070.05312.10
5.0.50.0000.04312.10
5.0.40.0070.02012.10
5.0.30.0000.05712.10
5.0.20.0070.03712.10
5.0.10.0030.04312.10
5.0.00.0070.06312.10
4.4.90.0030.03312.10
4.4.80.0000.03712.10
4.4.70.0000.03712.10
4.4.60.0030.03312.10
4.4.50.0030.03312.10
4.4.40.0070.05012.10
4.4.30.0000.02012.10
4.4.20.0030.02312.10
4.4.10.0070.02312.10
4.4.00.0000.02712.10
4.3.110.0100.03012.10
4.3.100.0030.03012.10
4.3.90.0030.02712.10
4.3.80.0030.03012.10
4.3.70.0030.03012.10
4.3.60.0070.03012.10
4.3.50.0030.02712.10
4.3.40.0000.02712.10
4.3.30.0030.01312.10
4.3.20.0000.03312.10
4.3.10.0030.03312.10
4.3.00.0000.03712.10

preferences:
46.3 ms | 401 KiB | 5 Q