3v4l.org

run code in 300+ PHP versions simultaneously
<html> <h1 background="blue"><em>Another form</em></h1> <form align="center" method="Post" action="<?php htmlspecialchars($_SERVER["php_self"]);?>"> First Name:<input type="text" name="name1"><br> Last Name :<input type="text" name="name2"><br> Age :<input type="integer" List="age" name="age"> <datalist id="age"> <option value="1">18</option> <option value="2">19</option> <option value="3">20</option> <option value="4">21</option> </datalist><br> Country:<input type="text" list="country" name="country"> <datalist option= "country"> <option id="mylist"> <option value="Angola"> <option value="ARgentina"> <option value="Afghanistan"> <option value="Armenia"> <option value="Benin"> <option value="Bruei"> <option value="Belgium"> <option value="Cameroun"> <option value="Congo DR"> <option value="Denmark"> <option value="Estonia"> <option value="Eritrea"> </datalist><br> E-mail:<input type="text" name="email"><br> Password:<input type="password"><br> Sex<br><input type="radio" name="sex" value="Male" checked="checked" >Male <input type="radio" name="sex" value="Female">Female<br> comment<textarea name="comment" rows="6" columns="250" background="#f7f7f7">your comment here</textarea> <input type="submit" value="SUBMIT"> <?php if(isset($_POST["SUBMIT"])){ echo "your name is " .$name." you are wlcome"; } //define variables and set to empty values $first_name= $last_name= $age= $country =$email= $password = $sex = $comment; if( $_SERVER[REQUEST_METHOD]=="POST"){ $first_name= test_input($_POST["name1"]); $last_name= test_input($_POST["name2"]); $age= test_input($_POST["age"]); $country= test_input($_POST["country"]); $email= test_input($_POST["email"]); $password+ test_input($_POST["password"]); $sex= test_input($_POST["sex"]); $comment= test_input($_POST["comment"]); } function test_input($data){ $data= trim($data); $data= striplash($data); $data= htmlspecialchars($data); return $data; } ?> </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.0180.00318.56
8.3.50.0130.00522.11
8.3.40.0040.01118.79
8.3.30.0070.00719.21
8.3.20.0000.00720.34
8.3.10.0060.00322.09
8.3.00.0080.00022.52
8.2.180.0120.00418.54
8.2.170.0120.00319.12
8.2.160.0090.00622.96
8.2.150.0040.00425.66
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0000.00819.48
8.2.110.0030.00719.33
8.2.100.0070.00418.22
8.2.90.0000.00819.40
8.2.80.0030.00617.97
8.2.70.0060.00317.73
8.2.60.0080.00018.05
8.2.50.0050.00318.22
8.2.40.0030.00622.31
8.2.30.0040.00418.15
8.2.20.0070.00017.81
8.2.10.0050.00319.63
8.2.00.0040.00417.77
8.1.280.0130.00725.92
8.1.270.0040.00422.19
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00723.83
8.1.230.0070.00320.36
8.1.220.0030.00517.78
8.1.210.0050.00318.77
8.1.200.0060.00317.47
8.1.190.0050.00317.35
8.1.180.0070.00018.10
8.1.170.0040.00418.51
8.1.160.0000.00718.86
8.1.150.0000.00818.59
8.1.140.0040.00417.36
8.1.130.0000.00717.82
8.1.120.0000.00717.44
8.1.110.0040.00417.48
8.1.100.0000.00717.41
8.1.90.0040.00417.47
8.1.80.0030.00317.50
8.1.70.0070.00017.43
8.1.60.0030.00617.50
8.1.50.0000.00717.54
8.1.40.0040.00417.39
8.1.30.0030.00617.67
8.1.20.0000.00817.52
8.1.10.0040.00417.57
8.1.00.0030.00517.39
8.0.300.0060.00318.77
8.0.290.0070.00016.88
8.0.280.0030.00318.49
8.0.270.0030.00617.34
8.0.260.0030.00616.87
8.0.250.0000.00717.04
8.0.240.0050.00216.94
8.0.230.0040.00417.07
8.0.220.0000.00716.88
8.0.210.0030.00316.96
8.0.200.0040.00416.97
8.0.190.0070.00316.92
8.0.180.0000.00717.02
8.0.170.0050.00217.01
8.0.160.0080.00017.02
8.0.150.0040.00416.95
8.0.140.0030.00516.85
8.0.130.0060.00013.39
8.0.120.0040.00416.98
8.0.110.0040.00416.82
8.0.100.0070.00017.01
8.0.90.0070.00017.03
8.0.80.0030.01416.88
8.0.70.0040.00416.97
8.0.60.0020.00517.05
8.0.50.0040.00416.92
8.0.30.0100.01217.31
8.0.20.0130.00617.40
8.0.10.0000.00717.13
8.0.00.0070.01116.83
7.4.330.0000.00515.00
7.4.320.0000.00716.64
7.4.300.0060.00016.61
7.4.290.0030.00316.65
7.4.280.0030.00316.52
7.4.270.0000.00716.59
7.4.260.0040.00416.51
7.4.250.0030.00316.60
7.4.240.0030.00416.58
7.4.230.0000.00716.65
7.4.220.0180.00416.61
7.4.210.0070.00816.65
7.4.200.0030.00316.50
7.4.190.0030.00516.71
7.4.160.0060.00916.35
7.4.150.0090.00917.40
7.4.140.0080.01517.86
7.4.130.0120.00816.62
7.4.120.0110.00616.56
7.4.110.0100.00616.53
7.4.100.0200.00416.65
7.4.90.0210.00316.43
7.4.80.0080.01619.39
7.4.70.0030.01416.37
7.4.60.0080.01116.39
7.4.50.0050.00016.52
7.4.40.0030.01222.77
7.4.30.0160.00616.61
7.4.00.0090.00614.83
7.3.330.0060.00013.45
7.3.320.0030.00313.32
7.3.310.0030.00316.48
7.3.300.0030.00316.32
7.3.290.0140.00016.47
7.3.280.0080.00916.47
7.3.270.0030.01917.40
7.3.260.0150.00616.31
7.3.250.0110.00916.47
7.3.240.0130.00916.40
7.3.230.0080.00816.57
7.3.210.0190.00016.61
7.3.200.0080.00819.39
7.3.190.0130.00716.48
7.3.180.0060.01616.36
7.3.170.0060.01216.59
7.3.160.0030.01316.41
7.3.120.0090.00915.15
7.3.110.0070.01015.04
7.3.100.0000.01414.79
7.3.90.0110.00714.95
7.3.80.0030.01215.13
7.3.70.0040.00714.92
7.3.60.0070.00714.74
7.3.50.0040.00814.89
7.3.40.0110.00414.82
7.3.30.0090.00314.70
7.3.20.0030.01016.73
7.3.10.0110.00016.71
7.3.00.0060.00916.72
7.2.330.0170.00816.73
7.2.320.0030.01716.61
7.2.310.0030.01416.75
7.2.300.0080.00816.44
7.2.290.0030.01916.59
7.2.240.0060.00914.85
7.2.230.0110.00414.87
7.2.220.0080.00814.88
7.2.210.0070.00715.18
7.2.200.0060.00914.76
7.2.190.0090.00615.09
7.2.180.0030.01314.97
7.2.170.0060.00914.96
7.2.160.0100.00715.12
7.2.150.0030.01317.02
7.2.140.0030.01017.05
7.2.130.0030.00917.02
7.2.120.0050.00516.65
7.2.110.0060.01216.82
7.2.100.0070.01017.03
7.2.90.0120.00616.96
7.2.80.0000.01016.88
7.2.70.0070.01016.90
7.2.60.0160.00716.72
7.2.50.0000.00916.89
7.2.40.0080.00816.96
7.2.30.0070.01016.57
7.2.20.0060.00316.68
7.2.10.0030.01416.95
7.2.00.0070.00918.06
7.1.330.0060.00615.86
7.1.320.0030.01015.61
7.1.310.0070.01015.68
7.1.300.0100.00615.80
7.1.290.0040.00715.80
7.1.280.0100.00715.75
7.1.270.0040.01115.70
7.1.260.0060.00615.64
7.1.250.0100.00315.76
7.1.200.0040.00715.66
7.1.100.0060.00918.25
7.1.70.0030.00617.12
7.1.60.0030.01619.82
7.1.50.0040.01116.92
7.1.00.0000.07722.44
7.0.200.0040.00416.89
7.0.140.0000.07322.05
7.0.60.0100.08319.98
7.0.50.0130.07317.91
7.0.40.0130.08320.21
7.0.30.0130.05320.16
7.0.20.0230.04720.24
7.0.10.0230.08720.06
7.0.00.0070.08320.07
5.6.280.0030.07320.91
5.6.210.0070.07720.56
5.6.200.0070.03718.18
5.6.190.0070.09020.61
5.6.180.0170.07020.55
5.6.170.0230.04720.55
5.6.160.0070.06720.54
5.6.150.0000.08018.27
5.6.140.0130.07718.15
5.6.130.0030.04018.22
5.6.120.0100.06321.15
5.6.110.0130.07021.05
5.6.100.0100.08320.97
5.6.90.0070.08320.99
5.6.80.0100.08020.52
5.6.70.3300.03720.54
5.5.350.0300.05020.54
5.5.340.0100.03718.09
5.5.330.0030.05020.40
5.5.320.0070.04720.27
5.5.310.0170.04320.25
5.5.300.0030.08717.98
5.5.290.0030.06017.95
5.5.280.0170.08320.89
5.5.270.0000.04720.88
5.5.260.0130.08020.88
5.5.250.0200.07020.63
5.5.240.0170.03720.36
5.4.450.2600.04319.65
5.4.440.3030.04319.27
5.4.430.3000.03719.45
5.4.420.2530.03719.41
5.4.410.2970.05319.04
5.4.400.2500.04019.23
5.4.390.2500.04019.23
5.4.380.2900.03318.95
5.4.370.2770.04019.22
5.4.360.2800.04319.13
5.4.350.2630.03719.15
5.4.340.2700.03319.17
5.4.320.2670.03319.09
5.4.310.2800.03319.09
5.4.300.2670.03719.20
5.4.290.2770.03319.22
5.4.280.2330.04319.19
5.4.270.2800.04019.16
5.4.260.2830.03018.83
5.4.250.2900.04319.09
5.4.240.2530.03319.19
5.4.230.2500.03318.86
5.4.220.2730.04019.23
5.4.210.2770.04318.96
5.4.200.2730.04018.96
5.4.190.2900.04019.23
5.4.180.2730.03018.98
5.4.170.2700.03319.13
5.4.160.2430.04019.25
5.4.150.2630.04319.23
5.4.140.2670.04016.38
5.4.130.2770.03316.32
5.4.120.2970.03716.49
5.4.110.2830.03016.46
5.4.100.2900.03316.59
5.4.90.2670.03316.57
5.4.80.2800.03716.45
5.4.70.2470.03316.34
5.4.60.2700.03716.25
5.4.50.2730.04016.17
5.4.40.2330.03316.35
5.4.30.2530.03016.42
5.4.20.2900.04016.52
5.4.10.2930.04716.42
5.4.00.2670.03315.77
5.3.290.1470.04314.66
5.3.280.0100.03714.61
5.3.270.0070.03714.70
5.3.260.0030.05014.53
5.3.250.2530.03714.59
5.3.240.3470.02714.54
5.3.230.2630.03314.53
5.3.220.2370.03714.70
5.3.210.3230.03314.48
5.3.200.3000.04014.59
5.3.190.2630.03314.56
5.3.180.2900.03714.64
5.3.170.2430.04014.50
5.3.160.2470.04014.60
5.3.150.2470.03714.73
5.3.140.2630.04714.79
5.3.130.2670.04014.65
5.3.120.2470.03714.71
5.3.110.2830.03314.64
5.3.100.2570.04014.04
5.3.90.2700.03714.05
5.3.80.2700.04014.14
5.3.70.2500.03313.93
5.3.60.2500.04013.99
5.3.50.0400.05314.05
5.3.40.2300.04714.08
5.3.30.2330.03313.93
5.3.20.2830.03713.77
5.3.10.2530.04013.72
5.3.00.2770.04313.67
5.2.170.2200.04011.07
5.2.160.2070.03011.39
5.2.150.2270.03011.17
5.2.140.1930.03311.09
5.2.130.0530.04711.05
5.2.120.0030.06011.05
5.2.110.0000.06711.03
5.2.100.0070.05311.05
5.2.90.1170.04311.07
5.2.80.2000.03011.01
5.2.70.2300.03311.03
5.2.60.1970.03310.98
5.2.50.2330.03011.11
5.2.40.1970.02010.91
5.2.30.1900.03010.90
5.2.20.1900.03310.89
5.2.10.1970.03011.11
5.2.00.1700.03010.79
5.1.60.1770.0239.92
5.1.50.2070.0209.90
5.1.40.0700.0239.89
5.1.30.1230.02710.57
5.1.20.1470.03010.28
5.1.10.1270.02310.07
5.1.00.1570.02710.17
5.0.50.0970.0278.65
5.0.40.0970.0178.48
5.0.30.0870.0308.47
5.0.20.0800.0208.11
5.0.10.0870.0208.08
5.0.00.1000.0378.11
4.4.90.0900.0137.29
4.4.80.0870.0137.29
4.4.70.1000.0237.29
4.4.60.0800.0177.29
4.4.50.0830.0137.29
4.4.40.0830.0277.29
4.4.30.0700.0177.29
4.4.20.1030.0207.29
4.4.10.0870.0137.29
4.4.00.0900.0237.29
4.3.110.0870.0177.29
4.3.100.0730.0177.29
4.3.90.0930.0107.29
4.3.80.0900.0207.29
4.3.70.0800.0177.29
4.3.60.0830.0177.29
4.3.50.0870.0137.29
4.3.40.1130.0277.29
4.3.30.0430.0137.29
4.3.20.0430.0177.29
4.3.10.0200.0177.29
4.3.00.0430.0137.29

preferences:
54.84 ms | 401 KiB | 5 Q