3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*2014 JMH*/ header('Cache-Control: no-cache, must-revalidate'); header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Content-type: application/json;charset=utf-8'); define("HOST","localhost"); define("USER","root"); define("PASSWORD","200lbq42lI"); define("DB","gts"); $con = new mysqli(HOST,USER,PASSWORD,DB); $con->set_charset("utf8"); if (!$con) { die('Could not connect: ' . mysqli_error()); } $sql= "SELECT Account.accountID , User.accountID, Account.password, User.userID, User.password from Account, User WHERE Account.accountID ='basic' AND User.accountID='basic' AND Account.password ='basic123' AND User.userID= ? AND User.password= ?"; $stmt = $con->prepare($sql); $stmt->bind_param('ss',$_POST['bruker'], $_POST['password'] ); $stmt->execute(); $stmt->store_result(); $numrows = $stmt->num_rows; if($numrows >0) { echo 'true'; } else { echo 'false'; } $con->close(); ?>

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.0070.00716.63
8.3.50.0120.00522.84
8.3.40.0180.00318.84
8.3.30.0060.01019.14
8.3.20.0190.00020.25
8.3.10.0000.00823.53
8.3.00.0030.00519.50
8.2.180.0110.00716.88
8.2.170.0070.00722.96
8.2.160.0100.00320.37
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0080.00026.16
8.2.120.0060.00319.29
8.2.110.0030.00620.53
8.2.100.0040.00718.04
8.2.90.0050.00318.15
8.2.80.0040.00417.97
8.2.70.0090.00017.50
8.2.60.0040.00417.91
8.2.50.0050.00318.07
8.2.40.0050.00318.09
8.2.30.0040.00419.33
8.2.20.0000.00717.58
8.2.10.0000.00817.95
8.2.00.0060.00317.73
8.1.280.0070.00725.92
8.1.270.0000.00823.96
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00422.05
8.1.230.0030.00920.89
8.1.220.0040.00417.74
8.1.210.0000.00818.91
8.1.200.0030.01017.13
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0040.00418.58
8.1.160.0030.00521.93
8.1.150.0000.00718.79
8.1.140.0000.00717.35
8.1.130.0000.00717.78
8.1.120.0080.00017.25
8.1.110.0040.00417.34
8.1.100.0040.00417.27
8.1.90.0000.00717.27
8.1.80.0040.00417.35
8.1.70.0070.00017.33
8.1.60.0060.00317.46
8.1.50.0080.00017.50
8.1.40.0040.00417.29
8.1.30.0040.00417.59
8.1.20.0060.00317.63
8.1.10.0050.00317.39
8.1.00.0060.00317.30
8.0.300.0080.00020.17
8.0.290.0070.00016.63
8.0.280.0060.00318.31
8.0.270.0070.00017.17
8.0.260.0030.00317.20
8.0.250.0000.00716.86
8.0.240.0000.00716.96
8.0.230.0030.00316.95
8.0.220.0030.00316.90
8.0.210.0000.00716.92
8.0.200.0060.00016.98
8.0.190.0040.00416.95
8.0.180.0000.00716.99
8.0.170.0000.00716.82
8.0.160.0070.00016.83
8.0.150.0070.00016.82
8.0.140.0000.00716.73
8.0.130.0030.00313.38
8.0.120.0030.00516.90
8.0.110.0050.00316.82
8.0.100.0040.00416.77
8.0.90.0000.00716.94
8.0.80.0040.01116.95
8.0.70.0050.00216.88
8.0.60.0040.00416.92
8.0.50.0050.00216.96
8.0.30.0090.01417.08
8.0.20.0110.00817.40
8.0.10.0040.00416.76
8.0.00.0100.00716.60
7.4.330.0050.00015.00
7.4.320.0030.00316.38
7.4.300.0000.00716.40
7.4.290.0030.00316.48
7.4.280.0030.00516.44
7.4.270.0030.00316.58
7.4.260.0000.00716.45
7.4.250.0040.00416.56
7.4.240.0050.00216.55
7.4.230.0020.00516.66
7.4.220.0070.01116.67
7.4.210.0000.01416.42
7.4.200.0000.00716.49
7.4.160.0000.01616.59
7.4.150.0150.00417.40
7.4.140.0070.01017.86
7.4.130.0080.00916.53
7.4.120.0070.01016.57
7.4.110.0080.00816.61
7.4.100.0090.00916.46
7.4.90.0100.00716.39
7.4.80.0090.00719.39
7.4.70.0100.00716.44
7.4.60.0100.00716.25
7.4.50.0040.00416.49
7.4.40.0120.00416.57
7.4.30.0100.00616.52
7.4.00.0070.01115.06
7.3.330.0000.00513.02
7.3.320.0060.00013.03
7.3.310.0040.00316.13
7.3.300.0030.00316.21
7.3.290.0000.01416.24
7.3.280.0050.01016.27
7.3.270.0080.03017.40
7.3.260.0160.00616.32
7.3.250.0100.00616.41
7.3.240.0200.00316.39
7.3.230.0030.01316.51
7.3.210.0150.00016.27
7.3.200.0130.00719.39
7.3.190.0110.00716.39
7.3.180.0170.00016.45
7.3.170.0040.01116.27
7.3.160.0080.00816.46
7.3.10.0070.00416.78
7.3.00.0060.00716.55
7.2.330.0000.01816.34
7.2.320.0090.01216.55
7.2.310.0090.00916.61
7.2.300.0120.01216.64
7.2.290.0070.01116.43
7.2.130.0110.00416.73
7.2.120.0050.00816.85
7.2.110.0040.00916.82
7.2.100.0080.00516.56
7.2.90.0060.00616.64
7.2.80.0050.00716.54
7.2.70.0060.00316.84
7.2.60.0040.00716.75
7.2.50.0070.00416.52
7.2.40.0050.00716.63
7.2.30.0040.01116.78
7.2.20.0030.00616.66
7.2.10.0070.00716.71
7.2.00.0020.00917.54
7.1.250.0040.00515.59
7.1.240.0030.00715.38
7.1.230.0000.01415.70
7.1.220.0000.00915.64
7.1.210.0040.00415.45
7.1.200.0080.00515.49
7.1.190.0090.00615.73
7.1.180.0050.00515.87
7.1.170.0100.00315.75
7.1.160.0060.00915.67
7.1.150.0080.00415.64
7.1.140.0030.01015.60
7.1.130.0100.00715.74
7.1.120.0040.00815.37
7.1.110.0060.00915.70
7.1.100.0000.01016.82
7.1.90.0070.00715.66
7.1.80.0070.00715.67
7.1.70.0060.00616.01
7.1.60.0080.01317.43
7.1.50.0250.00325.09
7.1.40.0090.00915.62
7.1.30.0120.00715.68
7.1.20.0130.01015.70
7.1.10.0070.00315.66
7.1.00.0050.04119.03
7.0.330.0030.01015.41
7.0.320.0030.00515.47
7.0.310.0060.00615.23
7.0.300.0030.00715.30
7.0.290.0060.00615.46
7.0.280.0090.00915.30
7.0.270.0000.00815.41
7.0.260.0030.00915.21
7.0.250.0080.00015.44
7.0.240.0030.01015.29
7.0.230.0040.01115.39
7.0.220.0040.00415.27
7.0.210.0040.00815.27
7.0.200.0080.00814.88
7.0.190.0130.00615.19
7.0.180.0160.00815.13
7.0.170.0130.00815.02
7.0.160.0070.01114.95
7.0.150.0030.01315.16
7.0.140.0040.03818.64
7.0.130.0040.01115.23
7.0.120.0070.00715.12
7.0.110.0100.00315.42
7.0.100.0070.00415.33
7.0.90.0040.00815.08
7.0.80.0070.00315.14
7.0.70.0040.01215.31
7.0.60.0020.04017.62
7.0.50.0080.02816.45
7.0.40.0040.04616.69
7.0.30.0300.01816.50
7.0.20.0130.04516.57
7.0.10.0120.04516.60
7.0.00.0030.04916.73
5.6.380.0040.01114.18
5.6.370.0000.01114.30
5.6.360.0060.00913.87
5.6.350.0030.00714.47
5.6.340.0030.01014.10
5.6.330.0030.00914.36
5.6.320.0030.00914.14
5.6.310.0030.01014.35
5.6.300.0030.01013.80
5.6.290.0000.00713.79
5.6.280.0070.03917.60
5.6.270.0060.00614.24
5.6.260.0000.01114.06
5.6.250.0090.00614.28
5.6.240.0060.00914.05
5.6.230.0040.00414.15
5.6.220.0080.00813.94
5.6.210.0100.03517.41
5.6.200.0100.03516.18
5.6.190.0030.04817.38
5.6.180.0190.03517.14
5.6.170.0190.02717.24
5.6.160.0110.04217.37
5.6.150.0080.02116.21
5.6.140.0080.03416.19
5.6.130.0080.04116.12
5.6.120.0080.02117.64
5.6.110.0070.02217.59
5.6.100.0130.04017.67
5.6.90.0070.04417.58
5.6.80.0020.03017.34
5.6.70.1500.02217.25
5.6.60.0000.01414.14
5.6.50.0040.01113.88
5.6.40.0040.00714.07
5.6.30.0030.00614.20
5.6.20.0000.01313.84
5.6.10.0030.01014.20
5.6.00.0070.00713.99
5.5.380.0030.00910.65
5.5.370.0070.00410.69
5.5.360.0040.00710.66
5.5.350.0120.03815.59
5.5.340.0030.02214.37
5.5.330.0070.04315.63
5.5.320.0110.02515.71
5.5.310.0200.02715.49
5.5.300.0100.03714.37
5.5.290.0070.04514.39
5.5.280.0050.04515.89
5.5.270.0120.04215.73
5.5.260.0120.04215.85
5.5.250.0070.03415.84
5.5.240.0150.02815.58
5.5.230.0000.00710.55
5.5.220.0070.00310.77
5.5.210.0060.00010.67
5.5.200.0030.00510.69
5.5.190.0030.00310.70
5.5.180.0060.00310.64
5.5.170.0040.00410.91
5.5.160.0040.00710.85
5.5.150.0040.00410.72
5.5.140.0000.01110.55
5.5.130.0090.00310.71
5.5.120.0030.00610.60
5.5.110.0090.00310.93
5.5.100.0090.00310.71
5.5.90.0000.00710.73
5.5.80.0030.01010.55
5.5.70.0040.00410.72
5.5.60.0030.00310.40
5.5.50.0030.00310.87
5.5.40.0000.00910.89
5.5.30.0030.00310.88
5.5.20.0000.00910.70
5.5.10.0080.00310.87
5.5.00.0060.00310.71
5.4.450.0050.02615.02
5.4.440.0280.02215.13
5.4.430.0190.02015.16
5.4.420.0150.02214.99
5.4.410.0000.03215.12
5.4.400.0140.02014.74
5.4.390.0160.02214.83
5.4.380.0100.04014.56
5.4.370.0280.03514.53
5.4.360.0250.02514.60
5.4.350.0150.03414.53
5.4.340.0170.02914.70
5.4.330.0000.00810.93
5.4.320.0040.02311.41
5.4.310.0040.02211.37
5.4.300.0050.02011.62
5.4.290.0040.03011.60
5.4.280.0100.02311.52
5.4.270.0080.02211.54
5.4.260.0070.02611.56
5.4.250.0050.02911.40
5.4.240.0080.02411.49
5.4.230.0110.03111.53
5.4.220.0120.03411.43
5.4.210.0160.05111.47
5.4.200.0090.03911.41
5.4.190.0070.02811.32
5.4.180.0060.02611.60
5.4.170.0060.02211.50
5.4.160.0030.02311.54
5.4.150.0060.02311.53
5.4.140.0090.03311.25
5.4.130.0040.02911.35
5.4.120.0060.02711.24
5.4.110.0060.02311.29
5.4.100.0040.02811.36
5.4.90.0030.02611.29
5.4.80.0090.02811.36
5.4.70.0080.02211.21
5.4.60.0040.02911.32
5.4.50.0050.02511.32
5.4.40.0050.02511.40
5.4.30.0050.02911.40
5.4.20.0040.02811.34
5.4.10.0040.02811.21
5.4.00.0090.02311.05
5.3.290.0050.02711.60
5.3.280.0020.02311.54
5.3.270.0050.02111.48
5.3.260.0030.02211.57
5.3.250.0050.02111.54
5.3.240.0040.02311.45
5.3.230.0020.02611.48
5.3.220.0060.02311.38
5.3.210.0040.02711.47
5.3.200.0030.02211.47
5.3.190.0020.02211.49
5.3.180.0050.02111.56
5.3.170.0050.02111.54
5.3.160.0050.02111.49
5.3.150.0070.02111.46
5.3.140.0030.02411.56
5.3.130.0070.02311.39
5.3.120.0040.02411.46
5.3.110.0050.02211.52
5.3.100.0050.02211.21
5.3.90.0070.02011.21
5.3.80.0050.02011.12
5.3.70.0050.02311.12
5.3.60.0050.02111.19
5.3.50.0060.01811.12
5.3.40.0050.02111.12
5.3.30.0040.02211.09
5.3.20.0050.02110.98
5.3.10.0100.01610.89
5.3.00.0040.02210.84
5.2.170.0090.0149.58
5.2.160.0040.0159.58
5.2.150.0060.0169.58
5.2.140.0060.0179.57
5.2.130.0060.0159.55
5.2.120.0060.0139.56
5.2.110.0050.0199.56
5.2.100.0040.0219.56
5.2.90.0040.0209.56
5.2.80.0030.0239.55
5.2.70.0050.0219.55
5.2.60.0060.0179.53
5.2.50.0060.0179.51
5.2.40.0030.0209.50
5.2.30.0060.0169.49
5.2.20.0040.0189.49
5.2.10.0040.0189.45
5.2.00.0040.0189.38
5.1.60.0020.0159.02
5.1.50.0050.0169.02
5.1.40.0060.0169.01
5.1.30.0040.0219.18
5.1.20.0020.0159.19
5.1.10.0020.0169.06
5.1.00.0010.0189.05
5.0.50.0060.0128.30
5.0.40.0030.0168.23
5.0.30.0010.0208.13
5.0.20.0020.0148.12
5.0.10.0080.0208.11
5.0.00.0020.0268.11
4.4.90.0030.0187.37
4.4.80.0030.0137.36
4.4.70.0080.0207.36
4.4.60.0040.0117.36
4.4.50.0030.0137.36
4.4.40.0050.0177.33
4.4.30.0030.0107.36
4.4.20.0050.0087.40
4.4.10.0040.0077.40
4.4.00.0010.0167.36
4.3.110.0020.0117.31
4.3.100.0030.0097.31
4.3.90.0020.0107.30
4.3.80.0030.0127.27
4.3.70.0020.0107.29
4.3.60.0030.0077.29
4.3.50.0020.0107.29
4.3.40.0010.0157.25
4.3.30.0020.0116.63
4.3.20.0010.0126.62
4.3.10.0030.0086.60
4.3.00.0100.01414.26

preferences:
35.62 ms | 401 KiB | 5 Q