3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE HTML> <html> <head> <style> .error {color: #FF0000;} </style> </head> <body> <h2>PHP Form Validation Example</h2> <p><span class="error">* required field.</span></p> <form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>"> Name: <input type="text" name="name" value="<?php echo $name;?>"> <br><br> Phone No: <input type="text" name="number" value="<?php echo $number;?>"> <br><br> Action: <select name="action"> <option value="Buy">Buy</option> <option value="Sell">Sell</option> </select><br> <br><br> Animal: <select name="action"> <option value="Buy">Buy</option> <option value="Sell">Sell</option> </select><br> <br><br> Gender: <input type="radio" name="gender" <?php if (isset($gender) && $gender=="female") echo "checked";?> value="female">Female <input type="radio" name="gender" <?php if (isset($gender) && $gender=="male") echo "checked";?> value="male">Male <span class="error">* <?php echo $genderErr;?></span> <br><br> <input type="submit" name="submit" value="Submit"> </form> <?php echo "<h2>Your Input:</h2>"; echo $name; echo "<br>"; echo $email; echo "<br>"; echo $website; echo "<br>"; echo $comment; echo "<br>"; echo $gender; ?> </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.0160.00316.88
8.3.50.0130.00621.14
8.3.40.0100.01019.00
8.3.30.0040.01118.45
8.3.20.0060.00318.77
8.3.10.0040.00421.77
8.3.00.0080.00021.94
8.2.180.0100.01016.63
8.2.170.0090.00622.96
8.2.160.0110.00422.07
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00019.77
8.2.120.0060.00326.35
8.2.110.0090.00020.94
8.2.100.0000.01117.84
8.2.90.0040.00419.23
8.2.80.0030.00617.97
8.2.70.0080.00017.63
8.2.60.0050.00317.92
8.2.50.0000.00818.10
8.2.40.0000.00720.45
8.2.30.0040.00419.21
8.2.20.0040.00418.01
8.2.10.0080.00019.84
8.2.00.0000.00717.70
8.1.280.0030.01425.92
8.1.270.0000.00822.18
8.1.260.0080.00028.09
8.1.250.0080.00028.09
8.1.240.0030.00622.68
8.1.230.0070.00317.77
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.11
8.1.190.0000.00917.11
8.1.180.0040.00418.10
8.1.170.0030.00518.41
8.1.160.0000.00723.93
8.1.150.0040.00422.12
8.1.140.0000.00719.50
8.1.130.0070.00020.09
8.1.120.0050.00317.34
8.1.110.0030.00617.34
8.1.100.0000.00717.46
8.1.90.0030.00317.47
8.1.80.0000.00717.44
8.1.70.0000.00917.44
8.1.60.0080.00017.53
8.1.50.0050.00317.45
8.1.40.0050.00317.51
8.1.30.0050.00317.63
8.1.20.0040.00417.70
8.1.10.0000.00717.45
8.1.00.0000.00817.48
8.0.300.0020.00518.77
8.0.290.0050.00316.88
8.0.280.0070.00018.38
8.0.270.0000.00817.15
8.0.260.0000.00620.16
8.0.250.0000.00717.04
8.0.240.0050.00216.93
8.0.230.0070.00017.07
8.0.220.0080.00016.96
8.0.210.0000.00716.94
8.0.200.0060.00316.95
8.0.190.0070.00317.00
8.0.180.0040.00416.86
8.0.170.0030.00616.87
8.0.160.0080.00016.82
8.0.150.0080.00016.82
8.0.140.0040.00416.91
8.0.130.0070.00013.40
8.0.120.0040.00416.93
8.0.110.0000.00716.97
8.0.100.0030.00617.00
8.0.90.0050.00216.79
8.0.80.0070.01016.98
8.0.70.0000.00717.00
8.0.60.0050.00316.89
8.0.50.0000.00717.05
8.0.30.0110.01017.06
8.0.20.0110.00817.40
8.0.10.0070.00017.07
8.0.00.0070.01116.50
7.4.330.0050.00015.55
7.4.320.0060.00016.52
7.4.300.0000.00616.34
7.4.290.0030.00316.47
7.4.280.0000.00716.61
7.4.270.0070.00016.35
7.4.260.0050.00316.48
7.4.250.0000.00716.46
7.4.240.0000.00716.57
7.4.230.0050.00216.59
7.4.220.0120.00816.58
7.4.210.0160.00016.60
7.4.200.0000.00716.57
7.4.160.0050.01116.51
7.4.150.0100.00717.40
7.4.140.0090.00817.86
7.4.130.0200.00816.55
7.4.120.0110.00616.62
7.4.110.0040.01216.66
7.4.100.0060.01216.35
7.4.90.0110.00616.59
7.4.80.0110.00719.39
7.4.70.0070.01016.36
7.4.60.0120.01216.40
7.4.50.0070.01116.32
7.4.40.0060.01016.33
7.4.30.0150.00316.55
7.4.00.0040.00714.91
7.3.330.0050.00013.17
7.3.320.0030.00313.10
7.3.310.0040.00416.30
7.3.300.0030.00316.39
7.3.290.0060.00916.32
7.3.280.0110.00816.37
7.3.270.0120.01217.40
7.3.260.0080.01016.41
7.3.250.0090.01016.35
7.3.240.0120.00916.55
7.3.230.0200.00016.63
7.3.210.0100.00616.50
7.3.200.0110.00516.52
7.3.190.0140.00416.50
7.3.180.0090.00916.48
7.3.170.0120.00416.56
7.3.160.0100.00816.46
7.3.10.0100.00716.15
7.3.00.0070.01115.81
7.2.330.0070.01016.52
7.2.320.0030.01616.74
7.2.310.0110.01116.64
7.2.300.0060.01316.57
7.2.290.0060.01216.64
7.2.130.0060.00916.23
7.2.120.0030.00616.81
7.2.110.0150.00816.27
7.2.100.0090.00716.33
7.2.90.0150.00816.66
7.2.80.0220.00716.16
7.2.70.0140.01016.70
7.2.60.0210.00416.82
7.2.50.0120.00616.63
7.2.40.0160.01216.57
7.2.30.0180.00516.98
7.2.20.0160.00816.54
7.2.10.0320.00916.66
7.2.00.0060.01217.97
7.1.250.0030.00914.88
7.1.200.0040.00815.42
7.1.70.0000.01417.17
7.1.60.0030.01417.22
7.1.00.0030.07322.43
7.0.200.0390.00714.87
7.0.120.0200.06022.09
7.0.110.0070.06022.03
7.0.100.0100.05022.02
7.0.90.0070.07322.14
7.0.80.0070.05722.07
7.0.70.0100.05022.07
7.0.60.0030.05722.08
7.0.50.0000.06322.20
7.0.40.0100.06022.16
7.0.30.0000.06322.09
7.0.20.0170.05022.13
7.0.10.0030.06022.07
7.0.00.0170.05022.05
5.6.270.0070.05721.14
5.6.260.0130.05321.11
5.6.250.0070.05320.99
5.6.240.0100.05320.76
5.6.230.0070.06020.99
5.6.220.0070.05321.09
5.6.210.0070.05720.86
5.6.200.0070.06020.84
5.6.190.0030.06320.83
5.6.180.0170.05021.04
5.6.170.0130.05021.01
5.6.160.0170.05021.02
5.6.150.0100.05721.07
5.6.140.0030.06320.99
5.6.130.0200.04320.83
5.6.120.0070.06020.83
5.6.110.0070.06020.82
5.6.100.0100.06020.91
5.6.90.0030.06021.00
5.6.80.0070.05320.41
5.6.70.0070.07020.32
5.6.60.0070.05720.17
5.6.50.0030.05720.42
5.6.40.0100.05020.21
5.6.30.0070.05320.30
5.6.20.0070.07320.29
5.6.10.0130.06720.15
5.6.00.0030.06720.14

preferences:
65.35 ms | 401 KiB | 5 Q