3v4l.org

run code in 300+ PHP versions simultaneously
<html> <head> <title>Personal INFO</title> </head> <body> <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"> 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']; if(isset($_POST['submit'])) { $name = $_POST['name']; echo 'User Has submitted the form and entered this name : '; echo $name; echo 'You can use the following form again to enter a new name.'; } else { echo 'Hello, '; echo $Fname; echo $Lname; echo 'You are '; echo $gender; echo 'and you like '; foreach ($food as $f) { echo $f; } echo $quote; echo 'Youre favorite time is '; echo $TofD; echo 'and you passed '; echo $education; } ?> </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.0100.01018.68
8.3.50.0100.01021.21
8.3.40.0030.01418.78
8.3.30.0070.00718.67
8.3.20.0040.00418.90
8.3.10.0000.00821.05
8.3.00.0050.00221.73
8.2.180.0080.00816.75
8.2.170.0060.00822.96
8.2.160.0110.00420.39
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00720.83
8.2.110.0040.00420.52
8.2.100.0070.00417.84
8.2.90.0040.00419.39
8.2.80.0030.00518.05
8.2.70.0050.00317.75
8.2.60.0080.00018.05
8.2.50.0080.00018.07
8.2.40.0030.00518.34
8.2.30.0000.00821.10
8.2.20.0040.00417.79
8.2.10.0040.00417.75
8.2.00.0050.00217.78
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0030.00622.45
8.1.230.0090.00320.70
8.1.220.0030.00718.77
8.1.210.0000.00818.82
8.1.200.0030.00617.23
8.1.190.0000.00817.40
8.1.180.0050.00318.10
8.1.170.0080.00018.55
8.1.160.0070.00018.80
8.1.150.0040.00418.55
8.1.140.0050.00217.36
8.1.130.0000.00717.86
8.1.120.0040.00417.45
8.1.110.0080.00017.34
8.1.100.0000.00717.51
8.1.90.0040.00417.36
8.1.80.0000.00717.46
8.1.70.0000.00717.35
8.1.60.0040.00417.60
8.1.50.0040.00417.38
8.1.40.0050.00317.54
8.1.30.0000.00917.50
8.1.20.0040.00417.60
8.1.10.0000.00817.57
8.1.00.0030.00717.48
8.0.300.0030.00319.97
8.0.290.0060.00317.16
8.0.280.0000.00818.35
8.0.270.0030.00617.16
8.0.260.0000.00816.88
8.0.250.0030.00517.02
8.0.240.0030.00617.03
8.0.230.0040.00416.98
8.0.220.0000.00716.91
8.0.210.0000.00716.92
8.0.200.0000.00616.96
8.0.190.0030.00417.04
8.0.180.0050.00316.88
8.0.170.0080.00016.98
8.0.160.0000.00816.88
8.0.150.0070.00016.89
8.0.140.0000.00716.80
8.0.130.0000.00613.37
8.0.120.0070.00016.92
8.0.110.0040.00416.93
8.0.100.0040.00416.99
8.0.90.0000.00716.99
8.0.80.0070.00717.00
8.0.70.0040.00416.93
8.0.60.0040.00416.97
8.0.50.0000.00716.83
8.0.30.0080.01317.08
8.0.20.0120.00617.40
8.0.10.0040.00417.00
8.0.00.0110.00916.76
7.4.330.0050.00014.73
7.4.320.0030.00316.61
7.4.300.0000.00616.40
7.4.290.0040.00416.61
7.4.280.0070.00016.51
7.4.270.0030.00316.60
7.4.260.0030.00313.25
7.4.250.0030.00616.56
7.4.240.0040.00316.55
7.4.230.0070.00016.50
7.4.220.0060.00916.37
7.4.210.0080.00616.56
7.4.200.0030.00316.49
7.4.190.0000.00716.41
7.4.160.0060.01016.36
7.4.150.0100.00717.40
7.4.140.0030.01417.86
7.4.130.0130.00516.61
7.4.120.0080.00916.53
7.4.110.0060.01116.65
7.4.100.0060.01216.59
7.4.90.0030.01616.60
7.4.80.0120.00619.39
7.4.70.0070.01016.42
7.4.60.0040.01316.41
7.4.50.0040.00416.63
7.4.40.0030.01322.77
7.4.30.0090.00916.41
7.4.00.0080.00914.96
7.3.330.0030.00213.31
7.3.320.0000.00613.22
7.3.310.0040.00416.39
7.3.300.0000.00716.43
7.3.290.0060.01216.28
7.3.280.0100.00816.32
7.3.270.0170.00017.40
7.3.260.0090.01318.24
7.3.250.0110.00616.40
7.3.240.0170.00316.57
7.3.230.0070.01016.50
7.3.210.0070.01116.46
7.3.200.0100.01019.39
7.3.190.0030.01516.59
7.3.180.0090.00816.55
7.3.170.0100.00716.50
7.3.160.0120.00316.48
7.3.120.0060.00614.76
7.3.110.0040.01414.99
7.3.100.0040.01115.06
7.3.90.0060.00315.07
7.3.80.0090.00615.16
7.3.70.0060.00614.68
7.3.60.0080.00814.94
7.3.50.0030.01314.90
7.3.40.0130.00014.73
7.3.30.0070.01014.89
7.3.20.0030.00616.68
7.3.10.0090.00616.20
7.3.00.0090.00516.57
7.2.330.0140.00416.78
7.2.320.0110.00616.38
7.2.310.0060.01216.70
7.2.300.0070.01016.36
7.2.290.0110.00516.70
7.2.250.0030.01515.02
7.2.240.0030.01715.34
7.2.230.0070.01015.04
7.2.220.0030.00614.90
7.2.210.0060.00914.82
7.2.200.0040.00815.22
7.2.190.0030.00715.09
7.2.180.0060.00915.16
7.2.170.0000.01615.05
7.2.130.0080.00416.60
7.2.120.0060.01216.73
7.2.110.0110.00716.62
7.2.100.0060.01216.88
7.2.90.0050.00516.66
7.2.80.0080.00316.56
7.2.70.0120.00316.79
7.2.60.0070.01016.51
7.2.50.0000.00916.73
7.2.40.0000.01016.89
7.2.30.0070.00716.57
7.2.20.0090.00616.61
7.2.10.0090.00616.34
7.2.00.0050.00818.11
7.1.330.0070.00715.76
7.1.320.0090.00315.83
7.1.310.0100.00315.86
7.1.300.0110.00015.77
7.1.290.0090.00615.43
7.1.280.0030.01015.80
7.1.270.0100.00315.79
7.1.260.0120.00415.74
7.1.250.0100.00315.46
7.1.200.0030.00915.66
7.1.100.0060.00618.13
7.1.70.0040.00717.30
7.1.60.0100.01019.40
7.1.50.0230.00334.52
7.1.00.0030.04722.28
7.0.200.0040.00416.63
7.0.140.0070.07022.09
7.0.60.0170.08020.07
7.0.50.0100.04317.80
7.0.40.0070.09020.40
7.0.30.0400.07720.16
7.0.20.0230.04320.16
7.0.10.0030.04320.16
7.0.00.0130.05320.13
5.6.280.0030.07321.14
5.6.210.0130.07020.72
5.6.200.0130.06718.17
5.6.190.0070.08320.67
5.6.180.0530.07320.56
5.6.170.0170.04320.71
5.6.160.0130.04720.49
5.6.150.0000.07018.17
5.6.140.0070.06018.21
5.6.130.0070.04018.11
5.6.120.0030.04721.01
5.6.110.0070.08020.89
5.6.100.0030.04021.13
5.6.90.0070.08721.07
5.6.80.0070.05020.40
5.5.350.3830.04320.42
5.5.340.0030.03717.98
5.5.330.0130.07720.37
5.5.320.0030.04020.41
5.5.310.0400.07320.16
5.5.300.0030.06318.00
5.5.290.0030.04017.88
5.5.280.0170.04720.77
5.5.270.0100.08320.87
5.5.260.0070.06720.79
5.5.250.0200.06320.46
5.5.240.0200.07320.22
5.4.450.0230.03019.41
5.4.440.0100.05019.57
5.4.430.0200.04019.24
5.4.420.0270.04719.54
5.4.410.0230.05019.35
5.4.400.0230.04719.25
5.4.390.0270.03319.21
5.4.380.0200.05719.13
5.4.370.0200.03719.24
5.4.360.0230.05319.06
5.4.350.0200.04718.93
5.4.340.0230.04719.21
5.4.320.0270.07319.13
5.4.310.0130.04019.09
5.4.300.0200.07019.13
5.4.290.0370.06319.10
5.4.280.0270.07018.88
5.4.270.0230.06719.24
5.4.260.0230.05719.13
5.4.250.0300.04019.09
5.4.240.0230.03319.08
5.4.230.0170.03719.15
5.4.220.0300.05319.09
5.4.210.0300.06019.13
5.4.200.0270.06018.92
5.4.190.0200.04018.92
5.4.180.0370.06019.07
5.4.170.0130.04018.90
5.4.160.0200.07019.06
5.4.150.0230.07019.04
5.4.140.0200.03716.35
5.4.130.0130.03716.25
5.4.120.0100.04016.25
5.4.110.0200.06316.43
5.4.100.0230.03016.39
5.4.90.0200.06316.39
5.4.80.0130.04316.20
5.4.70.0300.06716.46
5.4.60.0200.04716.20
5.4.50.0230.06016.38
5.4.40.0230.06716.36
5.4.30.0230.06016.38
5.4.20.0200.07316.43
5.4.10.0300.06716.38
5.4.00.0330.04315.82
5.3.290.0200.04314.64
5.3.280.0270.06014.55
5.3.270.0230.05014.66
5.3.260.0200.08014.70
5.3.250.0270.06714.54
5.3.240.0100.04314.55
5.3.230.0130.03714.55
5.3.220.0070.05314.61
5.3.210.0300.06314.52
5.3.200.0170.04314.50
5.3.190.0130.04014.42
5.3.180.0130.06314.61
5.3.170.0170.03714.50
5.3.160.0230.07714.61
5.3.150.0270.06714.54
5.3.140.0300.06314.46
5.3.130.0270.05714.48
5.3.120.0330.04314.39
5.3.110.0270.07014.42
5.3.100.0200.05713.89
5.3.90.0270.07013.86
5.3.80.0270.06313.96
5.3.70.0100.05013.87
5.3.60.0200.08013.91
5.3.50.0370.06014.04
5.3.40.0170.06313.78
5.3.30.0170.03713.82
5.3.20.0330.06313.54
5.3.10.0170.06313.45
5.3.00.0200.06313.59
5.2.170.0230.05712.04
5.2.160.0200.03312.04
5.2.150.0200.03012.04
5.2.140.0200.05712.04
5.2.130.0270.04712.04
5.2.120.0270.05312.04
5.2.110.0300.03712.04
5.2.100.0200.05712.04
5.2.90.0170.05312.04
5.2.80.0130.04012.04
5.2.70.0200.05312.04
5.2.60.0230.06012.04
5.2.50.0200.03712.04
5.2.40.0170.06012.04
5.2.30.0230.05712.04
5.2.20.0200.03312.04
5.2.10.0170.03712.04
5.2.00.0100.04012.04
5.1.60.0200.02712.04
5.1.50.0200.04712.04
5.1.40.0230.03012.04
5.1.30.0270.02012.04
5.1.20.0170.05312.04
5.1.10.0230.04712.04
5.1.00.0170.03712.04
5.0.50.0100.03712.04
5.0.40.0070.03312.04
5.0.30.0070.06312.04
5.0.20.0070.04012.04
5.0.10.0130.03012.04
5.0.00.0100.04312.04
4.4.90.0170.02712.04
4.4.80.0030.02312.04
4.4.70.0070.03712.04
4.4.60.0130.03012.04
4.4.50.0100.02312.04
4.4.40.0070.05312.04
4.4.30.0100.02712.04
4.4.20.0100.01712.04
4.4.10.0130.03012.04
4.4.00.0130.03712.04
4.3.110.0100.02712.04
4.3.100.0100.03312.04
4.3.90.0100.03312.04
4.3.80.0130.05012.04
4.3.70.0070.01712.04
4.3.60.0100.01012.04
4.3.50.0070.02312.04
4.3.40.0030.03312.04
4.3.30.0030.03712.04
4.3.20.0000.01712.04
4.3.10.0000.01712.04
4.3.00.0030.02012.04

preferences:
39.28 ms | 401 KiB | 5 Q