3v4l.org

run code in 300+ PHP versions simultaneously
<?php $con=mysqli_connect("localhost8080","a3876682_kami","Kawasakizx10r","a3876682_tonikam") or die(mysql_error()); $username = $_POST["username"]; $password = $_POST["password"]; $statement = mysqli_prepare($con, "SELECT * FROM User WHERE username = ? AND password = ?"); mysqli_stmt_bind_param($statement, "ss", $username, $password); mysqli_stmt_execute($statement); mysqli_stmt_store_result($statement); mysqli_stmt_bind_result($statement, $userID, $name, $age, $username, $password); $user = array(); while(mysqli_stmt_fetch($statement)){ $user["name"] = $name; $user["age"] = $age; $user["username"] = $username; $user["password"] = $password; } echo json_encode($user); mysqli_close($con); ?>

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.0150.00618.68
8.3.50.0120.00316.36
8.3.40.0110.00718.97
8.3.30.0060.00818.70
8.3.20.0040.00420.21
8.3.10.0050.00323.53
8.3.00.0060.00319.79
8.2.180.0040.01116.75
8.2.170.0120.00322.96
8.2.160.0070.00720.43
8.2.150.0090.00024.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0080.00017.38
8.2.110.0050.00521.18
8.2.100.0110.00017.72
8.2.90.0030.00619.17
8.2.80.0080.00017.97
8.2.70.0000.00817.50
8.2.60.0000.00817.55
8.2.50.0080.00318.10
8.2.40.0060.00320.56
8.2.30.0060.00619.66
8.2.20.0000.00717.77
8.2.10.0080.00017.95
8.2.00.0030.00517.90
8.1.280.0040.01125.92
8.1.270.0050.00320.29
8.1.260.0070.00026.35
8.1.250.0060.00328.09
8.1.240.0060.00323.98
8.1.230.0080.00317.64
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0060.00317.22
8.1.190.0080.00019.31
8.1.180.0000.00818.10
8.1.170.0000.00818.59
8.1.160.0050.00222.18
8.1.150.0050.00218.70
8.1.140.0030.00617.36
8.1.130.0030.00317.62
8.1.120.0030.00517.34
8.1.110.0040.00417.38
8.1.100.0040.00417.39
8.1.90.0020.00517.27
8.1.80.0000.00717.41
8.1.70.0040.00417.26
8.1.60.0000.00917.41
8.1.50.0030.00517.57
8.1.40.0000.00717.44
8.1.30.0030.00517.46
8.1.20.0040.00417.51
8.1.10.0030.00617.50
8.1.00.0070.00017.35
8.0.300.0070.00018.77
8.0.290.0090.00016.75
8.0.280.0030.00318.29
8.0.270.0030.00317.13
8.0.260.0060.00017.22
8.0.250.0040.00416.98
8.0.240.0000.00917.00
8.0.230.0000.00716.94
8.0.220.0070.00016.91
8.0.210.0070.00016.86
8.0.200.0060.00016.89
8.0.190.0090.00316.99
8.0.180.0000.01016.86
8.0.170.0040.00416.97
8.0.160.0040.00417.02
8.0.150.0040.00416.88
8.0.140.0080.00016.76
8.0.130.0070.00013.30
8.0.120.0070.00016.94
8.0.110.0040.00416.79
8.0.100.0080.00016.81
8.0.90.0000.00716.77
8.0.80.0070.01016.86
8.0.70.0000.00816.74
8.0.60.0040.00416.97
8.0.50.0000.00816.81
8.0.30.0110.00617.03
8.0.20.0120.01417.40
8.0.10.0040.00417.05
8.0.00.0090.01116.62
7.4.330.0000.00515.08
7.4.320.0000.00616.39
7.4.300.0000.00716.59
7.4.290.0040.00416.45
7.4.280.0000.00716.61
7.4.270.0050.00316.50
7.4.260.0070.00016.47
7.4.250.0000.00816.40
7.4.240.0040.00316.54
7.4.230.0080.00016.37
7.4.220.0030.01516.64
7.4.210.0060.01316.47
7.4.200.0030.00316.47
7.4.160.0110.00416.51
7.4.150.0150.00317.40
7.4.140.0160.01017.86
7.4.130.0110.00816.52
7.4.120.0050.01216.57
7.4.110.0080.00916.38
7.4.100.0130.01016.38
7.4.90.0030.01416.43
7.4.80.0100.01319.39
7.4.70.0090.00916.42
7.4.60.0100.00716.44
7.4.50.0090.00016.64
7.4.40.0130.00316.59
7.4.30.0090.00916.50
7.4.10.0120.00615.02
7.4.00.0080.00714.79
7.3.330.0000.00513.04
7.3.320.0050.00013.18
7.3.310.0040.00416.29
7.3.300.0030.00316.24
7.3.290.0090.00416.25
7.3.280.0110.00816.31
7.3.270.0110.00717.40
7.3.260.0150.00316.23
7.3.240.0130.00316.28
7.3.230.0120.00916.45
7.3.210.0130.00316.46
7.3.200.0080.00816.30
7.3.190.0160.00416.34
7.3.180.0060.00916.55
7.3.170.0040.01116.46
7.3.160.0160.00916.52
7.3.130.0040.01114.62
7.3.120.0060.01115.00
7.3.110.0090.00914.70
7.3.100.0120.00314.81
7.3.90.0040.00915.00
7.3.80.0060.00614.80
7.3.70.0030.01014.77
7.3.60.0060.00914.71
7.3.50.0020.01314.68
7.3.40.0130.00114.62
7.3.30.0030.01214.78
7.3.20.0050.00816.50
7.3.10.0060.00816.60
7.3.00.0090.00416.53
7.2.330.0080.01116.28
7.2.320.0070.01116.55
7.2.310.0090.00916.37
7.2.300.0000.01916.24
7.2.290.0140.00316.38
7.2.260.0040.01515.03
7.2.250.0050.01314.95
7.2.240.0070.01114.90
7.2.230.0050.00915.02
7.2.220.0050.01015.07
7.2.210.0050.00814.96
7.2.200.0040.01114.74
7.2.190.0030.00814.82
7.2.180.0020.01514.81
7.2.170.0050.01014.70
7.2.160.0070.00714.78
7.2.150.0060.00916.85
7.2.140.0000.01416.68
7.2.130.0060.00316.78
7.2.120.0000.01116.86
7.2.110.0040.01416.90
7.2.100.0030.01516.77
7.2.90.0060.01016.87
7.2.80.0100.00716.96
7.2.70.0040.01116.93
7.2.60.0090.00516.80
7.2.50.0000.01016.67
7.2.40.0060.00616.54
7.2.30.0140.00416.79
7.2.20.0070.00716.79
7.2.10.0030.01016.82
7.2.00.0030.00817.83
7.1.330.0110.00315.60
7.1.320.0050.01015.54
7.1.310.0040.01015.52
7.1.300.0010.00715.40
7.1.290.0040.00915.60
7.1.280.0040.00815.61
7.1.270.0050.00715.42
7.1.260.0060.00815.66
7.1.250.0040.01115.65
7.1.240.0100.00715.57
7.1.230.0030.01015.33
7.1.220.0090.00615.46
7.1.210.0040.00915.42
7.1.200.0050.01115.53
7.1.190.0000.01315.36
7.1.180.0040.00815.64
7.1.170.0000.01115.72
7.1.160.0070.01115.57
7.1.150.0030.00615.25
7.1.140.0060.01215.75
7.1.130.0000.01215.37
7.1.120.0060.00615.68
7.1.110.0030.00715.38
7.1.100.0030.01016.84
7.1.90.0070.00715.80
7.1.80.0080.00515.70
7.1.70.0070.00416.09
7.1.60.0080.00817.43
7.1.50.0070.01425.17
7.1.40.0000.01215.64
7.1.30.0030.01015.46
7.1.20.0070.00715.77
7.1.10.0070.00315.64
7.1.00.0070.04018.99
7.0.330.0060.00315.55
7.0.320.0070.01115.18
7.0.310.0070.00615.36
7.0.300.0090.00615.30
7.0.290.0080.00315.49
7.0.280.0030.00615.13
7.0.270.0030.01015.25
7.0.260.0000.00815.07
7.0.250.0070.00415.06
7.0.240.0110.00415.16
7.0.230.0030.00915.11
7.0.220.0000.00815.44
7.0.210.0040.01115.24
7.0.200.0050.00816.06
7.0.190.0100.00015.23
7.0.180.0060.00915.30
7.0.170.0040.00415.10
7.0.160.0070.00715.41
7.0.150.0000.01315.16
7.0.140.0070.00715.41
7.0.130.0000.01115.30
7.0.120.0030.00515.21
7.0.110.0040.01115.20
7.0.100.0070.01015.54
7.0.90.0400.02817.61
7.0.80.0290.02917.61
7.0.70.0350.03817.56
7.0.60.0340.03717.66
7.0.50.0400.02217.73
7.0.40.0050.04516.77
7.0.30.0080.04816.67
7.0.20.0080.02216.62
7.0.10.0080.04216.73
7.0.00.0070.04016.64
5.6.400.0080.00613.90
5.6.390.0080.00814.31
5.6.380.0060.00614.17
5.6.370.0100.00714.07
5.6.360.0070.00713.94
5.6.350.0040.01114.33
5.6.340.0060.01013.97
5.6.330.0030.00914.32
5.6.320.0070.00714.55
5.6.310.0130.00314.14
5.6.300.0070.00713.95
5.6.290.0030.01214.48
5.6.280.0020.02017.56
5.6.270.0000.01214.20
5.6.260.0040.01114.21
5.6.250.0030.00914.41
5.6.240.0080.03217.31
5.6.230.0100.02417.37
5.6.220.0090.02717.22
5.6.210.0100.02217.46
5.6.200.0110.04017.54
5.6.190.0080.02517.53
5.6.180.0050.02517.56
5.6.170.0100.02617.49
5.6.160.0030.02917.68
5.6.150.0020.03017.64
5.6.140.0040.04917.57
5.6.130.0070.03917.53
5.6.120.0060.04617.59
5.6.110.0020.04017.58
5.6.100.0070.04217.59
5.6.90.0090.04617.53
5.6.80.0070.02317.17
5.6.70.0080.02017.14
5.6.60.0050.03817.35
5.6.50.0090.04117.16
5.6.40.0040.04417.26
5.6.30.0020.04717.13
5.6.20.0070.02717.14
5.6.10.0050.02417.13
5.6.00.0150.03717.24
5.5.380.0030.03017.17
5.5.370.0040.03717.34
5.5.360.0040.02617.33
5.5.350.0080.04717.26
5.5.340.0050.04817.48
5.5.330.0070.04017.36
5.5.320.0070.04017.48
5.5.310.0080.02517.32
5.5.300.0120.03317.38
5.5.290.0050.04617.51
5.5.280.0120.04217.36
5.5.270.0080.04717.51
5.5.260.0020.03417.32
5.5.250.0100.04417.35
5.5.240.0100.02317.07
5.5.230.0050.02717.13
5.5.220.0070.04017.05
5.5.210.0060.04516.96
5.5.200.0050.04317.13
5.5.190.0100.04217.04
5.5.180.0050.04216.99
5.5.170.0060.00614.00
5.5.160.0070.03217.20
5.5.150.0080.03917.09
5.5.140.0120.03516.88
5.5.130.0050.04717.08
5.5.120.0130.03817.21
5.5.110.0070.03917.01
5.5.100.0050.04316.97
5.5.90.0030.04116.90
5.5.80.0070.04016.86
5.5.70.0100.04016.99
5.5.60.0100.03816.94
5.5.50.0050.04216.87
5.5.40.0060.04017.00
5.5.30.0050.04516.83
5.5.20.0030.04817.09
5.5.10.0030.04516.95
5.5.00.0050.04216.97
5.4.450.0060.04315.41
5.4.440.0070.04015.20
5.4.430.0040.04715.17
5.4.420.0100.03715.19
5.4.410.0050.04115.31
5.4.400.0090.03015.17
5.4.390.0130.02015.16
5.4.380.0070.01715.13
5.4.370.0050.04015.18
5.4.360.0100.02015.21
5.4.350.0060.03815.02
5.4.340.0050.02515.19
5.4.330.0000.00711.27
5.4.320.0020.04115.13
5.4.310.0050.03115.04
5.4.300.0070.03815.09
5.4.290.0050.03315.16
5.4.280.0030.03215.17
5.4.270.0080.04015.19
5.4.260.0050.04215.16
5.4.250.0050.04015.15
5.4.240.0000.04015.16
5.4.230.0050.02415.19
5.4.220.0070.04215.15
5.4.210.0000.04215.03
5.4.200.0100.03415.12
5.4.190.0130.03315.16
5.4.180.0060.03815.25
5.4.170.0050.04215.12
5.4.160.0010.03615.03
5.4.150.0060.02415.15
5.4.140.0050.03913.79
5.4.130.0070.03213.74
5.4.120.0050.04513.75
5.4.110.0070.03713.79
5.4.100.0050.02513.83
5.4.90.0070.03713.88
5.4.80.0050.03513.76
5.4.70.0100.01813.81
5.4.60.0070.02313.80
5.4.50.0060.03613.76
5.4.40.0030.03813.79
5.4.30.0050.02213.80
5.4.20.0050.02013.74
5.4.10.0090.03813.85
5.4.00.0140.01513.50

preferences:
59.38 ms | 400 KiB | 5 Q