3v4l.org

run code in 300+ PHP versions simultaneously
<?php require 'path/to/login_utils.php'; $username = $_POST['username']; // NO "custom cleaning function from login_utils" should be ever used here $userpass = $_POST['userpass']; $pdo = connect_to_database(); // custom connection function from login_utils $select = "SELECT `password` FROM `tbl_login` WHERE `username`=:username;"; $prepared = $conn->prepare($select); $prepared->execute([$username]); $result = $prepared->fetch(PDO::FETCH_ASSOC); if ($result && password_verify($userpass, $password)) { start_authenticated_session(); // custom session starting function from login_utils echo 'You have been logged in'; } die ('Invalid username and password combo');

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.5.10.0090.01018.77
8.5.00.0140.00820.04
8.4.150.0030.00014.05
8.4.140.0120.00917.46
8.4.130.0130.00817.83
8.4.120.0040.00625.74
8.4.110.0090.01118.98
8.4.100.0160.00418.99
8.4.90.0130.00622.40
8.4.80.0120.00918.77
8.4.70.0050.00320.05
8.4.60.0030.00522.04
8.4.50.0140.00719.64
8.4.40.0030.01619.77
8.4.30.0060.00318.63
8.4.20.0130.00720.49
8.4.10.0090.00619.57
8.3.280.0050.00418.45
8.3.270.0120.00816.80
8.3.260.0080.01016.76
8.3.250.0130.00618.81
8.3.240.0120.00817.23
8.3.230.0070.00216.63
8.3.220.0110.00818.74
8.3.210.0080.01018.74
8.3.200.0050.00416.66
8.3.190.0110.00617.12
8.3.180.0130.00716.56
8.3.170.0120.00616.77
8.3.160.0150.00417.04
8.3.150.0180.00017.48
8.3.140.0040.00418.84
8.3.130.0080.00018.42
8.3.120.0030.00620.73
8.3.110.0080.01120.94
8.3.100.0040.01518.43
8.3.90.0040.00426.77
8.3.80.0060.00319.36
8.3.70.0070.01518.43
8.3.60.0110.00416.75
8.3.50.0080.00523.63
8.3.40.0090.00618.97
8.3.30.0140.00018.88
8.3.20.0070.00020.73
8.3.10.0040.00423.61
8.3.00.0040.00421.90
8.2.290.0060.00220.48
8.2.280.0050.00518.57
8.2.270.0110.00716.80
8.2.260.0110.00418.67
8.2.250.0040.00418.50
8.2.240.0040.01416.98
8.2.230.0120.00622.58
8.2.220.0050.00324.06
8.2.210.0040.00726.77
8.2.200.0030.00718.88
8.2.190.0170.00316.63
8.2.180.0180.00018.59
8.2.170.0140.00722.96
8.2.160.0100.00722.03
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0100.00026.16
8.2.120.0040.00419.66
8.2.110.0050.00521.00
8.2.100.0120.00017.97
8.2.90.0040.00419.14
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0060.00318.04
8.2.50.0060.00318.07
8.2.40.0020.00518.16
8.2.30.0070.00318.02
8.2.20.0050.00218.00
8.2.10.0000.00819.33
8.2.00.0070.00019.28
8.1.330.0040.01521.88
8.1.320.0120.00816.03
8.1.310.0130.00616.47
8.1.300.0160.00319.99
8.1.290.0060.00330.84
8.1.280.0110.00725.92
8.1.270.0000.00820.69
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00717.36
8.1.230.0040.00817.71
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00817.11
8.1.190.0000.00817.36
8.1.180.0040.00418.10
8.1.170.0000.00818.50
8.1.160.0080.00018.91
8.1.150.0040.00418.90
8.1.140.0070.00022.37
8.1.130.0030.00320.21
8.1.120.0050.00217.43
8.1.110.0040.00417.41
8.1.100.0000.00817.41
8.1.90.0000.01017.33
8.1.80.0000.00717.46
8.1.70.0030.00617.42
8.1.60.0080.00017.63
8.1.50.0060.00317.57
8.1.40.0000.00817.48
8.1.30.0000.00817.57
8.1.20.0060.00317.62
8.1.10.0040.00417.49
8.1.00.0040.00417.46
8.0.300.0070.00018.77
8.0.290.0000.00916.74
8.0.280.0000.00818.42
8.0.270.0070.00018.09
8.0.260.0070.00020.07
8.0.250.0040.00417.12
8.0.240.0000.00717.08
8.0.230.0080.00017.11
8.0.220.0040.00717.04
8.0.210.0040.00417.04
8.0.200.0030.00317.02
8.0.190.0000.00817.11
8.0.180.0060.00317.04
8.0.170.0040.00416.98
8.0.160.0000.00717.09
8.0.150.0040.00417.00
8.0.140.0000.00717.03
8.0.130.0000.00913.52
8.0.120.0040.00416.91
8.0.110.0040.00417.04
8.0.100.0080.00017.06
8.0.90.0030.00616.94
8.0.80.0070.00717.03
8.0.70.0040.00417.04
8.0.60.0070.00016.95
8.0.50.0000.00817.05
8.0.30.0100.00617.09
8.0.20.0170.00617.23
8.0.10.0020.00517.07
8.0.00.0040.01416.64
7.4.330.0050.00016.70
7.4.320.0050.00216.64
7.4.300.0030.00316.44
7.4.290.0070.00016.53
7.4.280.0070.00016.55
7.4.270.0030.00316.43
7.4.260.0030.00313.38
7.4.250.0000.00716.64
7.4.240.0040.00416.59
7.4.230.0000.00716.63
7.4.220.0030.00316.68
7.4.210.0030.01016.54
7.4.200.0040.00416.64
7.4.130.0000.01916.35
7.4.120.0030.01516.70
7.4.110.0110.01116.47
7.4.100.0090.00916.47
7.4.90.0100.00716.35
7.4.80.0130.00519.39
7.4.70.0040.01116.62
7.4.60.0130.00316.59
7.4.50.0090.00616.33
7.4.40.0130.00816.60
7.4.10.0100.00716.36
7.4.00.0130.01016.60
7.3.330.0000.00716.39
7.3.320.0060.00013.04
7.3.310.0040.00416.24
7.3.300.0070.00016.31
7.3.290.0060.00816.36
7.3.280.0090.00616.40
7.3.260.0160.00616.30
7.3.230.0150.00316.47
7.3.210.0070.01016.25
7.3.200.0120.00616.53
7.3.190.0060.01116.34
7.3.180.0030.01316.29
7.3.170.0130.00716.43
7.3.160.0120.00816.44
7.3.130.0090.00916.40
7.3.120.0170.00016.24
7.3.110.0090.00916.29
7.3.100.0100.01016.33
7.3.90.0080.01116.28
7.3.80.0030.01916.48
7.3.70.0120.00416.31
7.3.60.0060.00916.21
7.3.50.0160.00316.34
7.3.40.0070.01416.23
7.3.30.0090.01216.19
7.3.20.0100.01316.38
7.3.10.0090.00916.23
7.3.00.0150.00616.34
7.2.330.0090.00916.63
7.2.320.0090.01316.29
7.2.310.0070.01116.64
7.2.300.0120.00416.61
7.2.290.0130.00316.55
7.2.260.0160.00716.43
7.2.250.0090.00916.39
7.2.240.0060.01216.58
7.2.230.0130.01016.39
7.2.220.0090.00916.37
7.2.210.0080.01416.29
7.2.200.0150.00716.70
7.2.190.0130.01016.39
7.2.180.0140.00716.49
7.2.170.0130.00916.32
7.2.160.0070.01616.53
7.2.150.0110.01416.29
7.2.140.0030.01416.27
7.2.130.0100.01016.49
7.2.120.0090.00916.54
7.2.110.0090.00916.56
7.2.100.0090.01516.48
7.2.90.0040.01516.69
7.2.80.0030.01316.37
7.2.70.0200.00316.50
7.2.60.0170.00716.79
7.2.50.0090.00916.47
7.2.40.0070.01116.59
7.2.30.0280.01016.59
7.2.20.0180.00316.57
7.2.10.0150.00916.45
7.2.00.0090.01616.25

preferences:
39.57 ms | 403 KiB | 5 Q