3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <head><title>home</title></head> <body> <?php if (filter_has_var(INPUT_POST, "username")){ // the form exists, so work with it $username=filter_input(INPUT_POST, "username"); print "<center><h1>Great going $username!<br>What type of room would you like to create?</h1></center>"; } else { //there's no input, hence create the form print <<<HERE <form action="php/index.php" method="post"> <center> <input type="text" name="fullname" placeholder="Full Name" size="25" required> <input type="email" name="email" placeholder="Email or Mobile" size="25" required> <input type="password" name="psw" placeholder="Password" size="25" required> </center><br> <input type="submit" value="Here You Go!"/><br><br> <center><h4>By clicking "Here You Go!" you agree with our terms & conditions and private policy.</h4></center> </form> HERE; } //end 'value exists' if ?> </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.0070.00716.63
8.3.50.0040.01117.95
8.3.40.0000.01518.72
8.3.30.0090.00618.75
8.3.20.0080.00020.60
8.3.10.0050.00222.02
8.3.00.0090.00020.63
8.2.180.0120.00318.26
8.2.170.0160.00318.86
8.2.160.0140.00722.96
8.2.150.0070.00025.66
8.2.140.0050.00324.66
8.2.130.0090.00926.16
8.2.120.0000.00820.93
8.2.110.0070.00321.04
8.2.100.0110.00017.72
8.2.90.0050.00319.28
8.2.80.0040.00418.22
8.2.70.0040.00417.50
8.2.60.0080.00017.47
8.2.50.0060.00317.55
8.2.40.0000.00722.34
8.2.30.0040.00419.06
8.2.20.0000.00717.61
8.2.10.0060.00317.83
8.2.00.0030.00717.85
8.1.280.0060.00925.92
8.1.270.0000.00923.89
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0060.00619.39
8.1.230.0110.00422.75
8.1.220.0000.00717.74
8.1.210.0000.00818.77
8.1.200.0030.00617.10
8.1.190.0080.00417.23
8.1.180.0030.00618.10
8.1.170.0030.00619.13
8.1.160.0030.00322.16
8.1.150.0040.00418.75
8.1.140.0040.00419.50
8.1.130.0030.00317.53
8.1.120.0050.00317.29
8.1.110.0050.00317.20
8.1.100.0040.00417.23
8.1.90.0040.00417.39
8.1.80.0000.00817.36
8.1.70.0070.00017.39
8.1.60.0040.00417.46
8.1.50.0000.00817.40
8.1.40.0030.00617.28
8.1.30.0050.00317.60
8.1.20.0000.00717.40
8.1.10.0040.00517.45
8.1.00.0020.00817.42
8.0.300.0000.00719.81
8.0.290.0000.00916.75
8.0.280.0030.00318.39
8.0.270.0050.00217.20
8.0.260.0080.00018.39
8.0.250.0030.00316.80
8.0.240.0060.00016.78
8.0.230.0030.00316.88
8.0.220.0040.00416.86
8.0.210.0060.00316.84
8.0.200.0030.00316.96
8.0.190.0070.00416.81
8.0.180.0040.00416.75
8.0.170.0000.00816.85
8.0.160.0040.00416.86
8.0.150.0000.00716.67
8.0.140.0030.00516.79
8.0.130.0030.00415.02
8.0.120.0060.00216.74
8.0.110.0020.00616.77
8.0.100.0000.00816.83
8.0.90.0030.00516.70
8.0.80.0000.01216.77
8.0.70.0020.00516.78
8.0.60.0050.00216.77
8.0.50.0020.00616.77
8.0.30.0090.00516.92
8.0.20.0060.01117.31
8.0.10.0040.00417.01
8.0.00.0110.00216.78
7.4.330.0030.00315.08
7.4.320.0000.00616.46
7.4.300.0070.00016.45
7.4.290.0030.00316.30
7.4.280.0030.00716.51
7.4.270.0030.00316.49
7.4.260.0020.00516.36
7.4.250.0040.00316.41
7.4.240.0020.00516.26
7.4.230.0040.00416.30
7.4.220.0050.00916.42
7.4.210.0060.00816.38
7.4.200.0000.00716.46
7.4.190.0030.00316.48
7.4.180.0030.00316.59
7.4.160.0090.00416.36
7.4.150.0060.00716.90
7.4.140.0080.00917.38
7.4.130.0080.00516.30
7.4.120.0060.00816.41
7.4.110.0080.00316.23
7.4.100.0080.00416.41
7.4.90.0070.00516.35
7.4.80.0090.00617.85
7.4.70.0060.00516.43
7.4.60.0080.00316.37
7.4.50.0050.00616.37
7.4.40.0100.00316.50
7.4.30.0100.00416.40
7.4.20.0070.00016.37
7.4.10.0030.00316.23
7.4.00.0070.00515.61
7.3.330.0110.00214.51
7.3.320.0040.00914.60
7.3.310.0080.00616.11
7.3.300.0060.00916.25
7.3.290.0080.00516.22
7.3.280.0080.00816.26
7.3.270.0110.00716.76
7.3.260.0150.00616.19
7.3.250.0130.00916.29
7.3.240.0120.00816.31
7.3.230.0090.00916.34
7.3.220.0090.00916.20
7.3.210.0100.00816.17
7.3.200.0130.00716.17
7.3.190.0130.00816.23
7.3.180.0100.00916.24
7.3.170.0130.00816.29
7.3.160.0130.00716.34
7.3.150.0160.00315.95
7.3.140.0150.00416.04
7.3.130.0120.00816.23
7.3.120.0180.00015.95
7.3.110.0160.00315.99
7.3.100.0120.00615.93
7.3.90.0190.00016.34
7.3.80.0170.00315.97
7.3.70.0090.00916.29
7.3.60.0120.00616.14
7.3.50.0150.00316.32
7.3.40.0140.00416.36
7.3.30.0180.00016.27
7.3.20.0200.00017.97
7.3.10.0140.00717.99
7.3.00.0210.00018.13
7.2.340.0130.00616.28
7.2.330.0150.00316.35
7.2.320.0120.00516.23
7.2.310.0130.00516.35
7.2.300.0140.00416.19
7.2.290.0140.00616.28
7.2.280.0110.00716.22
7.2.270.0120.00816.07
7.2.260.0200.00316.04
7.2.250.0100.00816.17
7.2.240.0160.00316.27
7.2.230.0180.00015.98
7.2.220.0150.00316.17
7.2.210.0160.00316.04
7.2.200.0170.00316.20
7.2.190.0190.00016.30
7.2.180.0120.00716.41
7.2.170.0180.00016.40
7.2.160.0130.00516.30
7.2.150.0190.00018.18
7.2.140.0190.00018.11
7.2.130.0180.00418.34
7.2.120.0190.00018.42
7.2.110.0100.00918.31
7.2.100.0200.00018.26
7.2.90.0200.00018.37
7.2.80.0080.01218.30
7.2.70.0130.00818.36
7.2.60.0060.00817.49
7.2.50.0140.00618.10
7.2.40.0190.00318.21
7.2.30.0160.00818.43
7.2.20.0180.00218.15
7.2.10.0170.00318.35
7.2.00.0100.00718.72
7.1.330.0160.00317.25
7.1.320.0110.00617.17
7.1.310.0070.01017.13
7.1.300.0150.00317.02
7.1.290.0190.00017.37
7.1.280.0140.00517.20
7.1.270.0110.00717.25
7.1.260.0150.00317.23
7.1.250.0190.00017.23
7.1.240.0140.00417.23
7.1.230.0140.00317.14
7.1.220.0110.00817.17
7.1.210.0170.00217.14
7.1.200.0110.00516.31
7.1.190.0140.00517.18
7.1.180.0130.00516.94
7.1.170.0120.00616.97
7.1.160.0190.00017.26
7.1.150.0110.00816.96
7.1.140.0160.00317.08
7.1.130.0130.00617.00
7.1.120.0110.00717.09
7.1.110.0160.00317.03
7.1.100.0190.00017.14
7.1.90.0150.00417.02
7.1.80.0160.00317.09
7.1.70.0080.00616.90
7.1.60.0110.00818.39
7.1.50.0120.00617.31
7.1.40.0110.00817.27
7.1.30.0150.00517.15
7.1.20.0090.00917.01
7.1.10.0120.00617.25
7.1.00.0060.04319.81
7.0.330.0130.00416.86
7.0.320.0110.00716.64
7.0.310.0180.00016.82
7.0.300.0180.00016.83
7.0.290.0150.00316.58
7.0.280.0130.00516.93
7.0.270.0130.00416.90
7.0.260.0180.00016.68
7.0.250.0140.00517.04
7.0.240.0100.00716.92
7.0.230.0090.00917.09
7.0.220.0130.00416.71
7.0.210.0140.00416.97
7.0.200.0140.00415.93
7.0.190.0130.00416.85
7.0.180.0150.00316.96
7.0.170.0080.01216.91
7.0.160.0180.00016.74
7.0.150.0120.00617.02
7.0.140.0150.00416.84
7.0.130.0130.00417.05
7.0.120.0130.00616.85
7.0.110.0150.00316.95
7.0.100.0300.03718.38
7.0.90.0080.04718.26
7.0.80.0100.02818.38
7.0.70.0230.04018.38
7.0.60.0110.02818.27
7.0.50.0240.04318.52
7.0.40.0100.02718.48
7.0.30.0100.04018.46
7.0.20.0150.03818.48
7.0.10.0120.03818.45
7.0.00.0090.03618.49
5.6.400.0170.00015.61
5.6.390.0070.01015.46
5.6.380.0140.00315.75
5.6.370.0120.00515.48
5.6.360.0140.00315.73
5.6.350.0130.00415.41
5.6.340.0150.00315.52
5.6.330.0130.00315.66
5.6.320.0130.00315.53
5.6.310.0150.00315.73
5.6.300.0110.00615.55
5.6.290.0110.00615.48
5.6.280.0140.00315.74
5.6.270.0120.00515.48
5.6.260.0100.00715.64
5.6.250.0090.04218.11
5.6.240.0120.03818.18
5.6.230.0120.03918.20
5.6.220.0170.03218.22
5.6.210.0150.03618.25
5.6.200.0120.02818.46
5.6.190.0120.04218.49
5.6.180.0120.04018.36
5.6.170.0100.04318.43
5.6.160.0120.04218.40
5.6.150.0170.03818.39
5.6.140.0130.03018.39
5.6.130.0110.04818.41
5.6.120.0180.03218.42
5.6.110.0120.04018.32
5.6.100.0130.04018.35
5.6.90.0150.04018.26
5.6.80.0060.04918.02
5.6.70.0120.03918.00
5.6.60.0050.04618.04
5.6.50.0130.04017.90
5.6.40.0130.01818.07
5.6.30.0100.04118.07
5.6.20.0120.03218.02
5.6.10.0150.03718.01
5.6.00.0080.04217.93

preferences:
61.74 ms | 401 KiB | 5 Q