3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(isset($_POST['submit'])){ $fn = $_POST['firstname']; $ln = $_POST['lastname']; $e = $_POST['email']; $pn = $_POST['phonenumber']; $ui = $_POST['username']; $p = $_POST['password']; if($fn && $ln && $e && $pn && $ui && $p) { $sql = "INSERT INTO employee_details (first_name, last_name, email, phonenumber, username, password) VALUES ('$fn', '$ln', '$e', '$pn', '$ui', '$p')"; $stmt = mysqli_prepare($dbc, $sql); mysqli_stmt_execute($stmt); $affected_rows = mysqli_stmt_affected_rows($stmt); if($affected_rows == 1){ $body = "Thank you for registering. To activate your account, please click on this link:<br />"; $body = "http://localhost/mbactivate.php?x=" . mail($_POST['email'], 'Registration Confirmation', $body, 'From: derekbanas@verizon.net'); echo '<br /><br /><h3>Thank you for registering! A confirmation email has been sent to your address. Please click on the link in that email in order to activate your account.</h3>'; mysql_close(); exit(); } } }

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.00316.50
8.3.50.0150.00722.75
8.3.40.0040.01218.69
8.3.30.0100.00718.72
8.3.20.0050.00321.74
8.3.10.0030.00520.40
8.3.00.0040.00422.13
8.2.180.0140.00418.30
8.2.170.0040.01122.96
8.2.160.0100.00322.08
8.2.150.0000.00824.18
8.2.140.0100.00324.66
8.2.130.0060.00319.41
8.2.120.0070.00026.35
8.2.110.0040.00422.02
8.2.100.0090.00317.91
8.2.90.0000.00817.97
8.2.80.0030.00517.97
8.2.70.0000.00817.50
8.2.60.0000.00817.80
8.2.50.0000.00818.10
8.2.40.0040.00420.36
8.2.30.0030.00619.27
8.2.20.0020.00518.09
8.2.10.0030.00517.99
8.2.00.0000.00717.59
8.1.280.0140.00725.92
8.1.270.0050.00223.93
8.1.260.0040.00426.35
8.1.250.0110.00328.09
8.1.240.0060.00323.97
8.1.230.0090.00322.73
8.1.220.0000.00817.74
8.1.210.0060.00318.79
8.1.200.0030.00617.23
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0000.01018.60
8.1.160.0040.00418.79
8.1.150.0040.00420.28
8.1.140.0000.00719.44
8.1.130.0030.00319.08
8.1.120.0000.00717.32
8.1.110.0040.00417.42
8.1.100.0040.00417.43
8.1.90.0040.00417.30
8.1.80.0070.00017.42
8.1.70.0030.00317.36
8.1.60.0070.00017.46
8.1.50.0080.00017.48
8.1.40.0040.00417.37
8.1.30.0000.00817.60
8.1.20.0030.00617.65
8.1.10.0000.00717.41
8.1.00.0000.00717.39
8.0.300.0040.00419.55
8.0.290.0040.00416.58
8.0.280.0000.00718.41
8.0.270.0040.00417.18
8.0.260.0000.00817.09
8.0.250.0070.00016.91
8.0.240.0040.00416.89
8.0.230.0070.00016.96
8.0.220.0030.00316.91
8.0.210.0030.00316.84
8.0.200.0000.00716.84
8.0.190.0040.00416.79
8.0.180.0040.00416.87
8.0.170.0000.00816.85
8.0.160.0000.00716.81
8.0.150.0070.00016.86
8.0.140.0030.00316.71
8.0.130.0030.00313.33
8.0.120.0000.00716.77
8.0.110.0080.00016.83
8.0.100.0040.00416.66
8.0.90.0000.00716.79
8.0.80.0040.01116.89
8.0.70.0040.00416.68
8.0.60.0040.00416.83
8.0.50.0000.00716.78
8.0.30.0100.00916.99
8.0.20.0100.01317.40
8.0.10.0020.00516.81
8.0.00.0110.00816.62
7.4.330.0000.00515.55
7.4.320.0030.00316.58
7.4.300.0060.00016.42
7.4.290.0000.00816.46
7.4.280.0030.00516.48
7.4.270.0030.00316.47
7.4.260.0080.00016.56
7.4.250.0050.00316.56
7.4.240.0040.00416.48
7.4.230.0040.00416.65
7.4.220.0070.01616.58
7.4.210.0070.01016.59
7.4.200.0040.00416.62
7.4.160.0090.00716.49
7.4.150.0090.01217.40
7.4.140.0100.01017.86
7.4.130.0120.00616.48
7.4.120.0110.01216.46
7.4.110.0070.01416.37
7.4.100.0030.01416.41
7.4.90.0130.00416.32
7.4.80.0060.01319.39
7.4.70.0120.00316.40
7.4.60.0100.00716.39
7.4.50.0030.01416.54
7.4.40.0000.01716.59
7.4.30.0030.01216.54
7.4.00.0060.00914.95
7.3.330.0000.00513.16
7.3.320.0030.00313.17
7.3.310.0030.00316.23
7.3.300.0040.00416.25
7.3.290.0060.01016.24
7.3.280.0110.00716.24
7.3.270.0060.01217.40
7.3.260.0060.01516.38
7.3.250.0090.01016.23
7.3.240.0120.00516.42
7.3.230.0090.00616.39
7.3.210.0090.01216.57
7.3.200.0090.00616.32
7.3.190.0120.00316.49
7.3.180.0100.00616.33
7.3.170.0080.00816.38
7.3.160.0090.00616.55
7.2.330.0070.01016.45
7.2.320.0070.01016.66
7.2.310.0100.00616.36
7.2.300.0070.01416.36
7.2.290.0150.00616.41
7.2.60.0140.00017.07
7.2.50.0170.00716.80
7.1.200.0030.01015.25
7.1.70.0030.00717.04
7.1.60.0160.01015.15
7.1.10.0130.07722.19
7.1.00.0170.05022.35
7.0.200.0040.01216.57
7.0.150.0070.06021.81
7.0.140.0170.04721.80
7.0.130.0130.05022.05
7.0.120.0100.05721.94
7.0.110.0270.05319.91
7.0.100.0070.05721.93
7.0.90.0000.06721.93
7.0.80.0170.04721.93
7.0.70.0000.06721.95
7.0.60.0000.06321.79
7.0.50.0230.05721.94
7.0.40.0130.05021.90
7.0.30.0170.04721.94
7.0.20.0070.05721.85
7.0.10.0030.06021.88
7.0.00.0230.05020.14

preferences:
60.08 ms | 401 KiB | 5 Q