3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('DB_HOST','localhost'); define('DB_NAME','client_registration'); define('DB_USER','root'); define('DB_PASSWORD','lunaone'); $con=mysqli_connect('localhost','lunone','lunaone') or die("Failed to connect to MySQL: " . mysqli_error()); $db=mysqli_select_db('client_registration',$con) or die("Failed to connect to MySQL: " . mysqli_error()); function NewUser() { $firstName = $_POST['first_name']; $lastName = $_POST['last_name']; $companyName = $_POST['company_name']; $phoneNumber = $_POST['phone_number']; $email = $_POST['email_address']; $password = $_POST['password']; $query = "INSERT INTO WebsiteUsers (firstName,lastName,companyName,phoneNumber,email_address,password) VALUES ('$irstName','$lastName''$companyName','$phoneNumber','$email_address','$password')"; $data = mysqli_query ($query)or die(mysqli_error()); if($data) { echo "YOUR REGISTRATION IS COMPLETED..."; } } function SignUp() { if(!empty($_POST['user'])) //checking the 'user' name which is from Sign-Up.html, is it empty or have some text { $query = mysqli_query("SELECT * FROM WebsiteUsers WHERE email_address = '$_POST[email_address]' AND password = '$_POST[password]'") or die(mysqli_error()); if(!$row = mysqli_fetch_array($query) or die(mysqli_error())) { newuser(); } else { echo "SORRY...YOU ARE ALREADY REGISTERED USER..."; } } } if(isset($_POST['submit'])) { SignUp(); } ?>

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.0060.01216.50
8.3.50.0120.01021.09
8.3.40.0120.00318.66
8.3.30.0110.00418.84
8.3.20.0080.00020.33
8.3.10.0000.00723.66
8.3.00.0040.00423.52
8.2.180.0000.01516.63
8.2.170.0060.01122.96
8.2.160.0100.00720.33
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0090.00021.06
8.2.120.0000.00826.35
8.2.110.0060.00319.16
8.2.100.0080.00317.80
8.2.90.0040.00419.05
8.2.80.0000.00817.97
8.2.70.0100.00017.63
8.2.60.0060.00317.91
8.2.50.0100.00018.09
8.2.40.0080.00022.32
8.2.30.0030.00519.32
8.2.20.0050.00317.69
8.2.10.0000.00718.08
8.2.00.0000.00717.96
8.1.280.0180.00325.92
8.1.270.0150.00322.18
8.1.260.0040.00428.09
8.1.250.0020.00528.09
8.1.240.0090.00022.06
8.1.230.0110.00017.77
8.1.220.0060.00317.74
8.1.210.0090.00018.77
8.1.200.0100.00017.36
8.1.190.0000.00817.13
8.1.180.0040.00418.10
8.1.170.0050.00318.34
8.1.160.0040.00420.72
8.1.150.0000.00718.98
8.1.140.0030.00619.44
8.1.130.0030.00317.51
8.1.120.0050.00517.29
8.1.110.0050.00317.26
8.1.100.0030.00517.37
8.1.90.0000.00817.32
8.1.80.0000.00817.42
8.1.70.0000.00717.33
8.1.60.0000.00717.44
8.1.50.0060.00317.54
8.1.40.0030.00617.50
8.1.30.0040.00417.56
8.1.20.0000.00817.63
8.1.10.0050.00317.58
8.1.00.0040.00417.50
8.0.300.0080.00018.82
8.0.290.0080.00016.63
8.0.280.0070.00018.32
8.0.270.0000.00717.15
8.0.260.0060.00017.13
8.0.250.0060.00016.99
8.0.240.0080.00016.89
8.0.230.0070.00016.98
8.0.220.0030.00516.94
8.0.210.0050.00216.88
8.0.200.0030.00316.87
8.0.190.0030.00516.98
8.0.180.0050.00316.87
8.0.170.0050.00316.94
8.0.160.0080.00016.88
8.0.150.0030.00316.79
8.0.140.0040.00416.87
8.0.130.0000.00613.38
8.0.120.0070.00016.91
8.0.110.0070.00016.82
8.0.100.0040.00416.88
8.0.90.0040.00416.80
8.0.80.0060.00916.83
8.0.70.0000.00716.86
8.0.60.0040.00416.95
8.0.50.0070.00017.02
8.0.30.0120.00717.12
8.0.20.0120.00817.40
8.0.10.0040.00417.02
8.0.00.0080.01016.72
7.4.330.0000.00516.84
7.4.320.0030.00316.42
7.4.300.0030.00316.37
7.4.290.0060.00316.45
7.4.280.0060.00316.55
7.4.270.0070.00016.45
7.4.260.0030.00616.46
7.4.250.0070.00016.52
7.4.240.0000.00816.54
7.4.230.0030.00516.59
7.4.220.0090.01016.55
7.4.210.0090.01316.49
7.4.200.0000.00716.38
7.4.160.0090.00616.54
7.4.150.0160.00317.40
7.4.140.0070.01117.86
7.4.130.0120.00616.42
7.4.120.0030.01416.53
7.4.110.0100.00716.49
7.4.100.0110.00716.51
7.4.90.0070.01416.39
7.4.80.0080.01119.39
7.4.70.0170.00016.49
7.4.60.0100.00716.33
7.4.50.0030.01316.43
7.4.40.0100.00716.60
7.4.30.0070.01116.50
7.4.10.0080.00914.96
7.4.00.0080.00915.05
7.3.330.0000.00613.16
7.3.320.0030.00313.33
7.3.310.0050.00316.18
7.3.300.0000.00716.34
7.3.290.0060.01116.33
7.3.280.0070.01016.31
7.3.270.0070.01117.40
7.3.260.0060.01216.37
7.3.250.0080.01216.39
7.3.240.0100.00716.33
7.3.230.0000.01916.39
7.3.210.0170.00716.35
7.3.200.0140.00719.39
7.3.190.0060.01016.34
7.3.180.0110.01116.42
7.3.170.0120.00816.31
7.3.160.0060.00916.30
7.3.130.0050.01314.97
7.3.120.0060.01114.69
7.3.110.0070.01014.90
7.3.100.0050.01014.68
7.3.90.0060.00714.69
7.3.80.0050.00814.79
7.3.70.0060.00814.68
7.3.60.0060.00714.73
7.3.50.0050.00614.91
7.3.40.0050.00614.81
7.3.30.0060.00814.75
7.3.20.0070.00416.60
7.3.10.0050.00916.48
7.3.00.0040.01116.55
7.2.330.0180.00616.68
7.2.320.0060.00916.45
7.2.310.0060.01116.59
7.2.300.0060.01216.67
7.2.290.0060.00916.61
7.2.260.0090.00915.13
7.2.250.0090.01015.07
7.2.240.0080.00814.96
7.2.230.0050.00914.85
7.2.220.0060.00814.83
7.2.210.0050.00914.90
7.2.200.0100.00514.92
7.2.190.0040.01114.83
7.2.180.0050.00814.84
7.2.170.0090.00614.89
7.2.160.0090.00714.98
7.2.150.0050.01016.80
7.2.140.0050.01016.71
7.2.130.0060.00916.62
7.2.120.0100.00216.82
7.2.110.0040.01016.75
7.2.100.0030.01116.67
7.2.90.0070.00516.85
7.2.80.0060.00816.72
7.2.70.0070.00816.88
7.2.60.0060.00916.76
7.2.50.0070.00616.84
7.2.40.0090.00416.68
7.2.30.0030.01216.94
7.2.20.0040.01116.81
7.2.10.0050.00716.55
7.2.00.0080.00617.54
7.1.330.0080.00615.72
7.1.320.0060.00615.87
7.1.310.0060.00715.74
7.1.300.0080.00715.47
7.1.290.0050.00715.63
7.1.280.0050.00815.57
7.1.270.0050.00815.61
7.1.260.0060.00815.71
7.1.250.0030.01015.65
7.1.240.0050.00715.59
7.1.230.0070.00715.47
7.1.220.0000.01315.60
7.1.210.0020.01115.61
7.1.200.0050.01015.55
7.1.190.0020.01115.71
7.1.180.0020.01415.78
7.1.170.0030.01015.56
7.1.160.0030.01015.67
7.1.150.0070.00615.69
7.1.140.0030.01015.73
7.1.130.0040.01015.59
7.1.120.0040.00915.72
7.1.110.0020.01015.67
7.1.100.0070.00716.45
7.1.90.0060.00915.83
7.1.80.0070.00815.69
7.1.70.0050.00516.10
7.1.60.0060.01117.04
7.1.50.0050.00915.97
7.1.40.0040.01315.64
7.1.30.0110.00515.66
7.1.20.0100.00515.61
7.1.10.0050.00715.56
7.1.00.0070.03118.02
7.0.330.0030.00515.37
7.0.320.0050.00615.29
7.0.310.0060.00715.23
7.0.300.0000.01215.21
7.0.290.0040.00615.22
7.0.280.0080.00615.37
7.0.270.0050.01115.29
7.0.260.0040.00815.21
7.0.250.0040.00915.24
7.0.240.0030.00715.45
7.0.230.0070.00815.30
7.0.220.0020.01315.35
7.0.210.0060.00615.31
7.0.200.0380.00414.98
7.0.190.0070.00615.28
7.0.180.0010.01115.12
7.0.170.0030.01215.34
7.0.160.0080.00615.29
7.0.150.0060.00515.26
7.0.140.0040.01115.32
7.0.130.0060.00615.22
7.0.120.0010.01015.45
7.0.110.0030.00715.33
7.0.100.0020.01215.42
7.0.90.0050.00415.39
7.0.80.0070.00715.35
7.0.70.0050.00815.35
7.0.60.0060.03317.47
7.0.50.0080.03016.30
7.0.40.0060.01715.65
7.0.30.0140.02815.53
7.0.20.0120.02715.63
7.0.10.0090.02615.70
7.0.00.0050.01615.58
5.6.400.0060.00814.22
5.6.390.0060.00514.05
5.6.380.0050.00914.36
5.6.370.0060.00814.22
5.6.360.0110.00414.08
5.6.350.0040.00714.15
5.6.340.0050.01214.14
5.6.330.0090.00613.97
5.6.320.0080.00714.30
5.6.310.0100.00314.04
5.6.300.0100.00214.23
5.6.290.0050.00913.98
5.6.280.0050.02216.35
5.6.270.0040.00714.00
5.6.260.0030.01014.21
5.6.250.0060.01014.08
5.6.240.0100.00014.24
5.6.230.0080.00713.99
5.6.220.0050.00714.16
5.6.210.0050.01916.22
5.6.200.0040.03015.46
5.6.190.0080.03016.14
5.6.180.0060.02116.21
5.6.170.0120.03416.07
5.6.160.0070.02816.15
5.6.150.0070.03015.49
5.6.140.0030.03815.40
5.6.130.0070.03215.54
5.6.120.0060.02116.36
5.6.110.0090.02316.31
5.6.100.0050.02116.36
5.6.90.0090.03116.26
5.6.80.0070.02216.13
5.6.70.0050.00713.83
5.6.60.0080.00513.89
5.6.50.0050.00814.04
5.6.40.0060.00813.87
5.6.30.0020.00813.93
5.6.20.0060.00514.05
5.6.10.0060.00514.09
5.6.00.0050.00913.89
5.5.380.0050.00713.94
5.5.370.0080.00514.34
5.5.360.0020.00814.09
5.5.350.0100.02516.21
5.5.340.0110.02815.30
5.5.330.0100.02716.23
5.5.320.0230.02816.25
5.5.310.0190.01716.10
5.5.300.0040.02315.23
5.5.290.0060.02515.36
5.5.280.0080.03316.30
5.5.270.0080.02516.21
5.5.260.0030.03716.16
5.5.250.0090.02916.29
5.5.240.0140.02416.13
5.5.230.0010.01013.90
5.5.220.0030.00914.14
5.5.210.0050.01014.08
5.5.200.0060.00714.09
5.5.190.0040.00813.90
5.5.180.0040.00613.94
5.5.170.0080.00413.90
5.5.160.0040.00914.00
5.5.150.0030.01014.05
5.5.140.0070.00514.05
5.5.130.0040.00813.96
5.5.120.0050.00514.16
5.5.110.0020.00913.82
5.5.100.0080.00313.91
5.5.90.0080.00513.93
5.5.80.0070.00713.87
5.5.70.0070.00813.94
5.5.60.0060.00913.88
5.5.50.0060.00514.00
5.5.40.0050.00713.89
5.5.30.0060.00814.00
5.5.20.0020.01113.83
5.5.10.0030.00913.90
5.5.00.0070.00414.04

preferences:
42.56 ms | 401 KiB | 5 Q