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=$this->mysqli_connect('localhost','root','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.0120.00316.63
8.3.50.0110.00821.16
8.3.40.0140.00318.88
8.3.30.0110.00318.52
8.3.20.0030.00520.31
8.3.10.0000.00821.76
8.3.00.0060.00321.75
8.2.180.0110.00416.50
8.2.170.0110.00422.96
8.2.160.0130.00320.27
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00421.06
8.2.120.0050.00326.35
8.2.110.0030.00622.29
8.2.100.0070.00417.88
8.2.90.0000.00819.23
8.2.80.0040.00417.97
8.2.70.0030.00617.38
8.2.60.0030.00517.80
8.2.50.0080.00018.09
8.2.40.0050.00322.20
8.2.30.0020.00519.32
8.2.20.0070.00017.76
8.2.10.0040.00418.09
8.2.00.0040.00418.08
8.1.280.0070.01425.92
8.1.270.0040.01122.14
8.1.260.0080.00028.09
8.1.250.0000.00828.09
8.1.240.0060.00324.02
8.1.230.0090.00320.41
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0060.00317.10
8.1.190.0000.00817.22
8.1.180.0050.00318.10
8.1.170.0000.00818.42
8.1.160.0000.00720.77
8.1.150.0050.00218.87
8.1.140.0000.00819.45
8.1.130.0030.00317.52
8.1.120.0110.00017.36
8.1.110.0000.00817.27
8.1.100.0000.00717.27
8.1.90.0070.00017.27
8.1.80.0020.00517.24
8.1.70.0040.00417.39
8.1.60.0040.00417.55
8.1.50.0040.00417.36
8.1.40.0040.00417.40
8.1.30.0000.00817.66
8.1.20.0050.00317.54
8.1.10.0070.00017.58
8.1.00.0060.00317.43
8.0.300.0000.00818.77
8.0.290.0000.00816.75
8.0.280.0070.00018.47
8.0.270.0000.00717.26
8.0.260.0000.00617.15
8.0.250.0070.00017.01
8.0.240.0030.00616.96
8.0.230.0050.00316.87
8.0.220.0050.00316.92
8.0.210.0030.00416.96
8.0.200.0030.00317.01
8.0.190.0000.00816.98
8.0.180.0000.00716.89
8.0.170.0080.00016.97
8.0.160.0040.00316.96
8.0.150.0000.00716.92
8.0.140.0000.00716.86
8.0.130.0060.00013.41
8.0.120.0000.00816.90
8.0.110.0000.00716.95
8.0.100.0040.00416.79
8.0.90.0040.00416.88
8.0.80.0070.00816.97
8.0.70.0000.00816.86
8.0.60.0030.00516.90
8.0.50.0040.00416.80
8.0.30.0130.01016.98
8.0.20.0100.00817.40
8.0.10.0040.00416.93
8.0.00.0070.01116.64
7.4.330.0050.00016.77
7.4.320.0030.00316.40
7.4.300.0080.00016.37
7.4.290.0000.00816.39
7.4.280.0040.00416.54
7.4.270.0020.00516.55
7.4.260.0000.00716.49
7.4.250.0000.00716.48
7.4.240.0040.00416.52
7.4.230.0030.00316.40
7.4.220.0070.00016.59
7.4.210.0110.00616.50
7.4.200.0000.00716.59
7.4.160.0090.00616.21
7.4.150.0030.01417.40
7.4.140.0100.00917.86
7.4.130.0060.01216.50
7.4.120.0100.00916.50
7.4.110.0100.00716.45
7.4.100.0130.01016.53
7.4.90.0090.00816.62
7.4.80.0150.00519.39
7.4.70.0130.00316.37
7.4.60.0080.00816.51
7.4.50.0100.00616.35
7.4.40.0100.00716.66
7.4.30.0060.01816.61
7.4.10.0090.00814.81
7.4.00.0050.01214.93
7.3.330.0090.00213.31
7.3.320.0030.00313.36
7.3.310.0030.00316.43
7.3.300.0000.00716.25
7.3.290.0100.01016.30
7.3.280.0050.01016.33
7.3.270.0150.00417.40
7.3.260.0100.01016.45
7.3.250.0100.00816.29
7.3.240.0100.00816.40
7.3.230.0070.01016.61
7.3.210.0100.00716.41
7.3.200.0080.01219.39
7.3.190.0040.01216.53
7.3.180.0110.00616.41
7.3.170.0090.00916.51
7.3.160.0100.00716.32
7.3.130.0100.01014.79
7.3.120.0070.01014.86
7.3.110.0050.01214.72
7.3.100.0070.00714.88
7.3.90.0060.00714.75
7.3.80.0040.00614.84
7.3.70.0050.00914.82
7.3.60.0030.00814.76
7.3.50.0070.00814.76
7.3.40.0020.01114.77
7.3.30.0040.01014.81
7.3.20.0070.00816.63
7.3.10.0060.00616.52
7.3.00.0050.00916.62
7.2.330.0060.01216.39
7.2.320.0090.00616.53
7.2.310.0110.00716.38
7.2.300.0140.00316.54
7.2.290.0080.00816.34
7.2.260.0100.01014.99
7.2.250.0110.00915.02
7.2.240.0060.01115.10
7.2.230.0050.01214.85
7.2.220.0050.01014.81
7.2.210.0040.01115.05
7.2.200.0080.00514.96
7.2.190.0060.00714.91
7.2.180.0080.01014.97
7.2.170.0050.00814.97
7.2.160.0060.00914.77
7.2.150.0000.01516.79
7.2.140.0080.00416.79
7.2.130.0090.00916.76
7.2.120.0070.00716.75
7.2.110.0060.01016.53
7.2.100.0130.00316.49
7.2.90.0050.00516.53
7.2.80.0070.00716.82
7.2.70.0000.01216.70
7.2.60.0100.00616.77
7.2.50.0100.00716.87
7.2.40.0090.00316.79
7.2.30.0030.00616.79
7.2.20.0060.01316.64
7.2.10.0070.01316.61
7.2.00.0080.00718.04
7.1.330.0050.01015.71
7.1.320.0030.00815.52
7.1.310.0060.00715.66
7.1.300.0080.00615.56
7.1.290.0040.00915.60
7.1.280.0040.00915.66
7.1.270.0070.00615.60
7.1.260.0030.01215.68
7.1.250.0060.00915.71
7.1.240.0060.00315.75
7.1.230.0070.00715.77
7.1.220.0100.00315.70
7.1.210.0030.01015.63
7.1.200.0050.00815.70
7.1.190.0000.01015.68
7.1.180.0070.01115.78
7.1.170.0030.01015.45
7.1.160.0110.00415.66
7.1.150.0070.00415.59
7.1.140.0030.01015.74
7.1.130.0110.00815.70
7.1.120.0030.00715.50
7.1.110.0060.00915.82
7.1.100.0020.01216.95
7.1.90.0040.00815.80
7.1.80.0000.01015.42
7.1.70.0020.00916.42
7.1.60.0050.01417.53
7.1.50.0080.00816.21
7.1.40.0070.00715.65
7.1.30.0000.00915.71
7.1.20.0030.00915.75
7.1.10.0050.00515.49
7.1.00.0020.04319.05
7.0.330.0060.00315.43
7.0.320.0080.00514.94
7.0.310.0080.00815.11
7.0.300.0130.00315.29
7.0.290.0060.00615.12
7.0.280.0030.01015.23
7.0.270.0060.01215.52
7.0.260.0030.01415.21
7.0.250.0040.01115.40
7.0.240.0060.00915.48
7.0.230.0060.00315.06
7.0.220.0110.00015.06
7.0.210.0100.00315.16
7.0.200.0030.00715.95
7.0.190.0090.00015.16
7.0.180.0040.00815.45
7.0.170.0070.00715.39
7.0.160.0000.00815.47
7.0.150.0060.00615.26
7.0.140.0070.00715.41
7.0.130.0100.00715.51
7.0.120.0030.01315.56
7.0.110.0070.00715.45
7.0.100.0000.01415.50
7.0.90.0060.00615.48
7.0.80.0040.00815.43
7.0.70.0100.00315.28
7.0.60.0070.02418.54
7.0.50.0050.05016.52
7.0.40.0050.02516.79
7.0.30.0150.04216.73
7.0.20.0190.04516.76
7.0.10.0030.03116.75
7.0.00.0040.02616.83
5.6.400.0090.00614.33
5.6.390.0040.01114.36
5.6.380.0040.00813.74
5.6.370.0050.00514.16
5.6.360.0000.01414.16
5.6.350.0080.00514.20
5.6.340.0030.01714.32
5.6.330.0060.00914.07
5.6.320.0060.00914.27
5.6.310.0060.00314.18
5.6.300.0070.00714.32
5.6.290.0030.01414.11
5.6.280.0050.02917.70
5.6.270.0090.00314.47
5.6.260.0100.00314.52
5.6.250.0070.00714.34
5.6.240.0040.00814.02
5.6.230.0080.00814.05
5.6.220.0110.00314.12
5.6.210.0040.02217.38
5.6.200.0090.04216.15
5.6.190.0050.04617.24
5.6.180.0140.02517.48
5.6.170.0100.03017.47
5.6.160.0110.04317.31
5.6.150.0070.04316.11
5.6.140.0080.04416.29
5.6.130.0020.03216.17
5.6.120.0120.03817.77
5.6.110.0030.05217.59
5.6.100.0000.02917.74
5.6.90.0110.04517.59
5.6.80.0060.04317.34
5.6.70.0060.00914.14
5.6.60.0080.00813.89
5.6.50.0100.00614.17
5.6.40.0040.00714.21
5.6.30.0060.00613.81
5.6.20.0090.00314.17
5.6.10.0070.00714.36
5.6.00.0060.00613.92
5.5.380.0080.00814.15
5.5.370.0100.00714.16
5.5.360.0000.01614.01
5.5.350.0070.04017.27
5.5.340.0090.04116.01
5.5.330.0070.02917.35
5.5.320.0320.03717.20
5.5.310.0200.03417.12
5.5.300.0090.04316.12
5.5.290.0060.03116.12
5.5.280.0070.04417.55
5.5.270.0100.04017.41
5.5.260.0050.02317.33
5.5.250.0030.04217.32
5.5.240.0140.03117.16
5.5.230.0000.01214.13
5.5.220.0080.00014.00
5.5.210.0090.00614.23
5.5.200.0040.00814.00
5.5.190.0060.00614.30
5.5.180.0030.01014.07
5.5.170.0040.01114.02
5.5.160.0050.00313.92
5.5.150.0040.00413.91
5.5.140.0080.00314.21
5.5.130.0070.00713.96
5.5.120.0030.01213.98
5.5.110.0030.00914.14
5.5.100.0030.00514.09
5.5.90.0090.00613.92
5.5.80.0000.00814.12
5.5.70.0040.00413.96
5.5.60.0070.00713.94
5.5.50.0030.01314.20
5.5.40.0060.00614.21
5.5.30.0070.01014.05
5.5.20.0080.00814.10
5.5.10.0040.01113.85
5.5.00.0030.00713.88

preferences:
58.9 ms | 401 KiB | 5 Q