3v4l.org

run code in 300+ PHP versions simultaneously
<html> <head> <title>Process the HTML form data with the POST method</title> </head> <body> <form name="myform" action="process.php" method="POST"> <input type="hidden" name="check_submit" value="1" /> Name: <input type="text" name="Name" /><br /> Password: <input type="password" name="Password" maxlength="10" /><br /> Select something from the list: <select name="Seasons"> <option value="Spring" selected="selected">Spring</option> <option value="Summer">Summer</option> <option value="Autumn">Autumn</option> <option value="Winter">Winter</option> </select><br /><br /> Choose one: <input type="radio" name="Country" value="USA" /> USA <input type="radio" name="Country" value="Canada" /> Canada <input type="radio" name="Country" value="Other" /> Other <br /> Choose the colors: <input type="checkbox" name="Colors[]" value="green" checked="checked" /> Green <input type="checkbox" name="Colors[]" value="yellow" /> Yellow <input type="checkbox" name="Colors[]" value="red" /> Red <input type="checkbox" name="Colors[]" value="gray" /> Gray <br /><br /> Comments:<br /> <textarea name="Comments" rows="10" cols="60">Enter your comments here</textarea><br /> <input type="submit" /> </form> <?php //Check whether the form has been submitted if (array_key_exists('check_submit', $_POST)) { //Converts the new line characters (\n) in the text area into HTML line breaks (the <br /> tag) $_POST['Comments'] = nl2br($_POST['Comments']); //Check whether a $_GET['Languages'] is set if ( isset($_POST['Colors']) ) { $_POST['Colors'] = implode(', ', $_POST['Colors']); //Converts an array into a single string } //Let's now print out the received values in the browser echo "Your name: {$_POST['Name']}<br />"; echo "Your password: {$_POST['Password']}<br />"; echo "Your favourite season: {$_POST['Seasons']}<br /><br />"; echo "Your comments:<br />{$_POST['Comments']}<br /><br />"; echo "You are from: {$_POST['Country']}<br />"; echo "Colors you chose: {$_POST['Colors']}<br />"; } else { echo "You can't see this page without submitting the form."; } ?> </body> </head> </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.0170.00318.43
8.3.50.0260.00521.97
8.3.40.0140.00318.81
8.3.30.0100.00319.01
8.3.20.0030.00520.30
8.3.10.0040.00422.09
8.3.00.0050.00222.32
8.2.180.0070.01116.38
8.2.170.0140.00022.96
8.2.160.0030.01020.98
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.01026.16
8.2.120.0040.01117.63
8.2.110.0070.00322.11
8.2.100.0120.00017.80
8.2.90.0070.00019.23
8.2.80.0000.00817.97
8.2.70.0030.00517.50
8.2.60.0040.00418.03
8.2.50.0070.00418.07
8.2.40.0030.00518.28
8.2.30.0040.00418.07
8.2.20.0000.00817.75
8.2.10.0040.00419.46
8.2.00.0030.00517.71
8.1.280.0070.00725.92
8.1.270.0030.00523.83
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0080.00424.01
8.1.230.0100.00019.15
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0040.00717.23
8.1.190.0030.00517.41
8.1.180.0050.00318.10
8.1.170.0060.00618.50
8.1.160.0000.00721.96
8.1.150.0040.00418.67
8.1.140.0000.00717.59
8.1.130.0050.00317.89
8.1.120.0040.00417.39
8.1.110.0070.00017.44
8.1.100.0040.00417.51
8.1.90.0000.00717.43
8.1.80.0000.00717.46
8.1.70.0000.00717.46
8.1.60.0030.00617.53
8.1.50.0040.00417.39
8.1.40.0030.00617.50
8.1.30.0050.00317.54
8.1.20.0030.00517.52
8.1.10.0000.00817.46
8.1.00.0040.00417.39
8.0.300.0070.00018.77
8.0.290.0050.00317.18
8.0.280.0040.00418.46
8.0.270.0070.00017.17
8.0.260.0030.00316.74
8.0.250.0030.00316.89
8.0.240.0040.00416.89
8.0.230.0030.00316.96
8.0.220.0080.00016.85
8.0.210.0000.00716.88
8.0.200.0030.00316.94
8.0.190.0070.00016.91
8.0.180.0000.00716.78
8.0.170.0000.00716.86
8.0.160.0040.00416.82
8.0.150.0000.00816.73
8.0.140.0030.00516.89
8.0.130.0000.00613.20
8.0.120.0000.00816.86
8.0.110.0000.00716.79
8.0.100.0030.00516.82
8.0.90.0050.00316.93
8.0.80.0040.01116.79
8.0.70.0020.00516.71
8.0.60.0040.00416.93
8.0.50.0000.00716.72
8.0.30.0170.00517.02
8.0.20.0160.00317.40
8.0.10.0040.00316.99
8.0.00.0130.00816.68
7.4.330.0050.00015.00
7.4.320.0030.00316.56
7.4.300.0040.00416.57
7.4.290.0000.00716.46
7.4.280.0000.00716.60
7.4.270.0000.00716.58
7.4.260.0000.00716.60
7.4.250.0050.00216.29
7.4.240.0020.00616.56
7.4.230.0040.00416.56
7.4.220.0130.00716.60
7.4.210.0070.00816.66
7.4.200.0000.00716.65
7.4.190.0000.00716.72
7.4.160.0120.00316.46
7.4.150.0060.01417.40
7.4.140.0100.00717.86
7.4.130.0100.01116.57
7.4.120.0140.00316.43
7.4.110.0060.01016.52
7.4.100.0130.00616.45
7.4.90.0140.00716.48
7.4.80.0130.00619.39
7.4.70.0100.00716.46
7.4.60.0130.00316.46
7.4.50.0000.00816.39
7.4.40.0080.00522.77
7.4.30.0130.00316.41
7.4.00.0080.00614.91
7.3.330.0000.00613.02
7.3.320.0060.00013.07
7.3.310.0000.00816.24
7.3.300.0030.00316.01
7.3.290.0140.00016.21
7.3.280.0060.01316.16
7.3.270.0160.00317.40
7.3.260.0090.00916.68
7.3.250.0080.01216.45
7.3.240.0060.01116.21
7.3.230.0030.01316.41
7.3.210.0150.00316.39
7.3.200.0110.00619.39
7.3.190.0130.00516.46
7.3.180.0130.00616.51
7.3.170.0090.01216.27
7.3.160.0090.00616.58
7.3.120.0070.01014.49
7.3.10.0100.00616.24
7.3.00.0030.01016.15
7.2.330.0050.01416.55
7.2.320.0090.00916.67
7.2.310.0100.00716.46
7.2.300.0130.00316.30
7.2.290.0120.00916.56
7.2.130.0060.00916.87
7.2.120.0030.01016.97
7.2.110.0040.01116.72
7.2.100.0030.01016.86
7.2.90.0080.00416.64
7.2.80.0030.00617.04
7.2.70.0000.01616.80
7.2.60.0050.00716.83
7.2.50.0070.01016.36
7.2.40.0030.01316.99
7.2.30.0080.00817.09
7.2.20.0060.00916.84
7.2.10.0040.00816.89
7.2.00.0040.01218.11
7.1.250.0040.00815.66
7.1.200.0000.00615.70
7.1.70.0000.00916.68
7.1.60.0040.00716.87
7.1.50.0200.01734.31
7.1.00.0030.07722.31
7.0.200.0000.00916.63
7.0.140.0070.07021.99
7.0.60.0030.07719.91
7.0.50.0030.08717.93
7.0.40.0100.08020.27
7.0.30.0300.05020.13
7.0.20.0270.08020.33
7.0.10.0100.08320.00
7.0.00.0070.07020.16
5.6.280.0070.07020.87
5.6.210.0170.06320.54
5.6.200.0070.03718.23
5.6.190.0070.04720.35
5.6.180.0300.05320.41
5.6.170.0370.07720.49
5.6.160.0130.08320.46
5.6.150.0030.05018.12
5.6.140.0070.08318.09
5.6.130.0000.07318.12
5.6.120.0030.06720.90
5.6.110.0130.07721.12
5.6.100.0100.08721.08
5.6.90.0100.04020.97
5.6.80.0070.09020.39
5.5.350.0270.07720.41
5.5.340.0070.05318.00
5.5.330.0100.08320.41
5.5.320.0270.08020.41
5.5.310.0270.07720.50
5.5.300.0000.07017.98
5.5.290.0170.07717.89
5.5.280.0070.04020.81
5.5.270.0030.04320.80
5.5.260.0030.07720.65
5.5.250.0000.08720.80
5.5.240.0170.04320.20
5.4.450.0200.04719.39
5.4.440.0400.04019.38
5.4.430.0330.04319.41
5.4.420.0470.04719.40
5.4.410.0570.04319.13
5.4.400.0100.05318.76
5.4.390.0200.04718.61
5.4.380.0370.05018.76
5.4.370.0070.05018.68
5.4.360.0170.04018.59
5.4.350.0430.04718.53
5.4.340.0270.05318.50
5.4.320.0080.03512.47
5.4.310.0030.04112.46
5.4.300.0090.04012.46
5.4.290.0090.04412.46
5.4.280.0060.03512.36
5.4.270.0070.05718.80
5.4.260.0100.06019.08
5.4.250.0030.05718.91
5.4.240.0070.08018.98
5.4.230.0200.05018.99
5.4.220.0100.05318.94
5.4.210.0130.05319.07
5.4.200.0070.05719.01
5.4.190.0130.06319.00
5.4.180.0130.06318.99
5.4.170.0170.05319.00
5.4.160.0030.06018.94
5.4.150.0270.05318.97
5.4.140.0130.06016.50
5.4.130.0100.06716.50
5.4.120.0000.05716.63
5.4.110.0030.05716.50
5.4.100.0130.05016.36
5.4.90.0270.04716.56
5.4.80.0070.05016.48
5.4.70.0100.05016.34
5.4.60.0100.05016.50
5.4.50.0070.06016.60
5.4.40.0030.05716.47
5.4.30.0200.05316.47
5.4.20.0100.05316.37
5.4.10.0070.05716.60
5.4.00.0000.05716.02
5.3.290.0050.04112.80
5.3.280.0170.04714.72
5.3.270.0100.07014.43
5.3.260.0070.05314.60
5.3.250.0100.07014.61
5.3.240.0130.05014.66
5.3.230.0130.06014.77
5.3.220.0200.07014.64
5.3.210.0100.06314.72
5.3.200.0230.05714.71
5.3.190.0130.06714.73
5.3.180.0130.05714.56
5.3.170.0130.05014.55
5.3.160.0170.05014.74
5.3.150.0200.04314.57
5.3.140.0030.07314.71
5.3.130.0070.06714.62
5.3.120.0100.06014.55
5.3.110.0100.06014.73
5.3.100.0070.05314.11
5.3.90.0070.06714.18
5.3.80.0130.05314.09
5.3.70.0170.07014.11
5.3.60.0130.06013.99
5.3.50.0030.05714.13
5.3.40.0070.05314.00
5.3.30.0170.05313.91
5.3.20.0100.07013.74
5.3.10.0100.07013.83
5.3.00.0100.05013.46
5.2.170.0170.03011.09
5.2.160.0100.04011.28
5.2.150.0070.04311.38
5.2.140.0100.04711.26
5.2.130.0070.05311.19
5.2.120.0070.06011.27
5.2.110.0130.05011.10
5.2.100.0100.05011.27
5.2.90.0030.05711.33
5.2.80.0130.04011.23
5.2.70.0100.05711.03
5.2.60.0100.04011.21
5.2.50.0070.04711.18
5.2.40.0030.05711.24
5.2.30.0170.04011.11
5.2.20.0130.04311.13
5.2.10.0070.05011.10
5.2.00.0200.04310.78
5.1.60.0170.03710.27
5.1.50.0070.04710.27
5.1.40.0070.05010.27
5.1.30.0030.04710.50
5.1.20.0000.04010.39
5.1.10.0070.03310.29
5.1.00.0070.03310.27
5.0.50.0100.02310.27
5.0.40.0000.03310.27
5.0.30.0170.04710.27
5.0.20.0000.03310.27
5.0.10.0100.02310.27
5.0.00.0030.04310.27
4.4.90.0070.02710.27
4.4.80.0000.03010.27
4.4.70.0100.02710.27
4.4.60.0070.02710.27
4.4.50.0000.03310.27
4.4.40.0070.03010.27
4.4.30.0030.03010.27
4.4.20.0000.02310.27
4.4.10.0030.02310.27
4.4.00.0000.03710.27
4.3.110.0030.02010.27
4.3.100.0070.01710.27
4.3.90.0030.03310.27
4.3.80.0100.03710.27
4.3.70.0000.03010.27
4.3.60.0070.01710.27
4.3.50.0030.02010.27
4.3.40.0100.03710.27
4.3.30.0030.02010.27
4.3.20.0030.02310.27
4.3.10.0000.02310.27
4.3.00.0000.01715.59

preferences:
46.02 ms | 401 KiB | 5 Q