3v4l.org

run code in 300+ PHP versions simultaneously
<?php //This is a PHP comment line /* This is a PHP comment block */ $table="staffstatus"; $ip="db4free.net"; $user="staartvin"; $password="myDwwRJN132!sql"; $database="staartvinmysql"; // Create connection $con= mysqli_connect($ip,$user,$password,$database) or die("Error " . mysqli_error($con)); // Check connection if (mysqli_connect_errno($con)) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $result = mysqli_query($con,"SELECT * FROM " . $table . " WHERE playerName='Staartvin'"); while($row = mysqli_fetch_array($result)) { if ($row['online']='true') { //echo '<img src="http://www.eb-5center.com/files/icon_check.png" border=0>'; echo 'test'; } } 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.0110.00418.31
8.3.50.0080.01021.14
8.3.40.0110.01118.97
8.3.30.0090.00620.17
8.3.20.0070.00020.15
8.3.10.0040.00422.01
8.3.00.0040.00422.40
8.2.180.0180.00016.75
8.2.170.0120.00322.96
8.2.160.0070.00722.13
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0070.00020.70
8.2.110.0060.00322.07
8.2.100.0040.00817.60
8.2.90.0020.00519.09
8.2.80.0040.00419.41
8.2.70.0060.00317.63
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0050.00519.82
8.2.30.0040.00419.45
8.2.20.0050.00317.65
8.2.10.0040.00417.75
8.2.00.0070.00017.81
8.1.280.0140.00025.92
8.1.270.0050.00223.99
8.1.260.0030.00626.35
8.1.250.0070.00028.09
8.1.240.0060.00318.70
8.1.230.0090.00319.08
8.1.220.0030.00517.79
8.1.210.0040.00418.77
8.1.200.0090.00017.34
8.1.190.0040.00417.53
8.1.180.0030.00519.01
8.1.170.0040.00418.55
8.1.160.0060.00618.78
8.1.150.0050.00318.57
8.1.140.0050.00217.27
8.1.130.0040.00417.83
8.1.120.0040.00417.32
8.1.110.0000.00717.46
8.1.100.0040.00417.34
8.1.90.0030.00317.27
8.1.80.0030.00617.29
8.1.70.0000.00717.41
8.1.60.0000.00917.48
8.1.50.0040.00417.41
8.1.40.0000.00817.56
8.1.30.0040.00417.59
8.1.20.0060.00317.55
8.1.10.0080.00017.61
8.1.00.0040.00417.41
8.0.300.0030.00518.77
8.0.290.0070.00017.18
8.0.280.0030.00518.41
8.0.270.0030.00317.21
8.0.260.0000.00716.88
8.0.250.0000.00716.90
8.0.240.0060.00316.93
8.0.230.0030.00516.94
8.0.220.0000.00716.81
8.0.210.0060.00016.82
8.0.200.0000.00716.95
8.0.190.0030.00916.92
8.0.180.0040.00416.88
8.0.170.0060.00316.93
8.0.160.0040.00416.92
8.0.150.0040.00416.82
8.0.140.0040.00416.76
8.0.130.0050.00013.36
8.0.120.0040.00416.86
8.0.110.0000.00716.92
8.0.100.0040.00416.93
8.0.90.0020.00516.79
8.0.80.0060.00916.85
8.0.70.0030.00516.95
8.0.60.0040.00416.79
8.0.50.0040.00416.93
8.0.30.0130.00617.07
8.0.20.0110.01017.40
8.0.10.0040.00416.86
8.0.00.0100.01116.57
7.4.330.0000.00715.06
7.4.320.0000.00716.54
7.4.300.0030.00316.66
7.4.290.0090.00016.63
7.4.280.0050.00316.40
7.4.270.0070.00016.62
7.4.260.0060.00013.27
7.4.250.0000.00716.52
7.4.240.0030.00316.64
7.4.230.0070.00016.30
7.4.220.0070.01016.64
7.4.210.0070.00816.59
7.4.200.0000.00716.63
7.4.190.0040.00416.71
7.4.160.0100.01316.64
7.4.150.0140.00317.40
7.4.140.0110.00817.86
7.4.130.0080.01016.56
7.4.120.0100.00616.52
7.4.110.0090.00816.51
7.4.100.0130.00316.48
7.4.90.0100.00716.41
7.4.80.0140.01019.39
7.4.70.0100.00716.47
7.4.60.0130.00316.50
7.4.50.0020.00216.39
7.4.40.0060.01222.77
7.4.30.0100.00616.53
7.4.00.0030.01414.95
7.3.330.0050.00013.20
7.3.320.0030.00312.97
7.3.310.0070.00016.09
7.3.300.0000.00716.25
7.3.290.0170.00316.30
7.3.280.0090.00916.28
7.3.270.0060.01017.40
7.3.260.0090.00916.44
7.3.250.0090.00916.36
7.3.240.0100.00716.44
7.3.230.0100.00716.51
7.3.210.0080.00816.44
7.3.200.0170.00319.39
7.3.190.0110.00816.64
7.3.180.0030.01316.46
7.3.170.0080.00816.35
7.3.160.0100.00716.23
7.3.120.0100.00314.82
7.2.330.0090.00916.62
7.2.320.0110.00816.58
7.2.310.0090.01316.47
7.2.300.0060.01116.27
7.2.290.0030.01316.67
7.2.80.0030.01016.45
7.2.60.0060.00616.82
7.2.00.0070.00719.52
7.1.200.0040.00415.54
7.1.100.0090.00617.83
7.1.70.0040.00417.01
7.1.60.0030.02119.21
7.1.50.0110.01416.79
7.1.00.0070.06722.31
7.0.200.0320.00614.68
7.0.140.0100.06722.02
7.0.60.0000.04319.89
7.0.50.0100.07717.89
7.0.40.0130.07020.43
7.0.30.0470.06720.20
7.0.20.0370.06320.18
7.0.10.0100.08320.33
7.0.00.0170.05020.18
5.6.280.0000.07721.11
5.6.210.0100.05720.76
5.6.200.0100.08318.21
5.6.190.0070.08720.77
5.6.180.0330.05320.77
5.6.170.0230.08020.47
5.6.160.0170.06720.41
5.6.150.0130.05318.21
5.6.140.0100.08018.15
5.6.130.0130.08018.16
5.6.120.0030.06320.89
5.6.110.0100.08020.96
5.6.100.0030.08320.99
5.6.90.0030.05020.88
5.6.80.0170.07020.38
5.5.350.0700.05320.43
5.5.340.0100.05317.98
5.5.330.0130.04720.21
5.5.320.0130.07720.13
5.5.310.0300.03720.23
5.5.300.0030.08317.98
5.5.290.0030.08018.02
5.5.280.0030.09020.88
5.5.270.0100.08720.68
5.5.260.0030.08720.64
5.5.250.0030.06320.50
5.5.240.0130.08020.26
5.4.450.4070.04019.43
5.4.440.3330.03719.11
5.4.430.3170.03319.20
5.4.420.3430.03719.40
5.4.410.3400.04319.00
5.4.400.3330.04319.09
5.4.390.3770.04019.09
5.4.380.3430.03719.13
5.4.370.4230.04019.21
5.4.360.4370.03718.93
5.4.350.3830.03718.80
5.4.340.3530.04319.16
5.4.320.3530.03719.13
5.4.310.3570.04019.13
5.4.300.3370.03719.24
5.4.290.3970.04018.93
5.4.280.4330.04019.08
5.4.270.4100.03719.24
5.4.260.3830.03018.79
5.4.250.3130.03719.26
5.4.240.3670.03319.07
5.4.230.3630.04719.07
5.4.220.3500.04019.24
5.4.210.3430.04018.92
5.4.200.3600.04019.07
5.4.190.3930.03719.07
5.4.180.3470.03719.05
5.4.170.3570.03718.91
5.4.160.3600.03319.06
5.4.150.3230.05319.22
5.4.140.3970.03316.55
5.4.130.3530.03016.20
5.4.120.3500.03016.25
5.4.110.3470.03316.47
5.4.100.3370.03716.30
5.4.90.3630.04016.30
5.4.80.3500.03316.38
5.4.70.4230.03316.46
5.4.60.3830.03716.36
5.4.50.3970.03316.41
5.4.40.3430.03716.36
5.4.30.3600.04016.20
5.4.20.3500.03316.03
5.4.10.4100.04016.27
5.4.00.3900.03715.67
5.3.290.3670.04014.71
5.3.280.3800.03014.54
5.3.270.3830.04014.44
5.3.260.3730.03014.58
5.3.250.3770.04014.59
5.3.240.3570.04314.44
5.3.230.3730.03014.69
5.3.220.3330.04014.51
5.3.210.3670.03714.41
5.3.200.3300.04314.50
5.3.190.3600.04014.51
5.3.180.3600.04014.41
5.3.170.4170.03714.51
5.3.160.4370.02714.46
5.3.150.3630.04314.49
5.3.140.3700.04014.51
5.3.130.3570.03714.49
5.3.120.3870.03314.45
5.3.110.3530.03014.42
5.3.100.3570.04013.94
5.3.90.3630.03713.89
5.3.80.3570.03714.07
5.3.70.3630.04013.89
5.3.60.3370.03313.85
5.3.50.3530.04313.82
5.3.40.3600.05014.04
5.3.30.3770.03713.82
5.3.20.3630.04013.47
5.3.10.3630.03713.50
5.3.00.3730.03013.55
5.2.170.3230.03711.19
5.2.160.3000.03311.19
5.2.150.3000.03311.30
5.2.140.3000.03311.08
5.2.130.2500.03310.99
5.2.120.3100.03010.95
5.2.110.3070.02310.99
5.2.100.3330.03011.04
5.2.90.2870.03011.02
5.2.80.0070.03010.93
5.2.70.0000.03310.96
5.2.60.0030.03010.88
5.2.50.1830.03711.06
5.2.40.2530.02310.84
5.2.30.2370.03310.85
5.2.20.3400.02311.00
5.2.10.2330.02710.72
5.2.00.2270.03010.61
5.1.60.2300.0239.93
5.1.50.2300.02310.16
5.1.40.2270.0279.90
5.1.30.2330.02310.30
5.1.20.2430.02710.29
5.1.10.2900.0209.98
5.1.00.2270.0309.99
5.0.50.1100.0208.42
5.0.40.1130.0208.30
5.0.30.1130.0308.25
5.0.20.1470.0238.09
5.0.10.1330.0208.23
5.0.00.1170.0278.24
4.4.90.0030.0136.69
4.4.80.0000.0176.69
4.4.70.1130.0176.69
4.4.60.0900.0136.69
4.4.50.1300.0206.69
4.4.40.0900.0206.69
4.4.30.1200.0106.69
4.4.20.1100.0176.69
4.4.10.1170.0206.69
4.4.00.1100.0276.69
4.3.110.1130.0176.69
4.3.100.1230.0206.69
4.3.90.1030.0136.69
4.3.80.1270.0306.69
4.3.70.1670.0106.69
4.3.60.1130.0136.69
4.3.50.1170.0106.69
4.3.40.1170.0236.69
4.3.30.0670.0136.69
4.3.20.0530.0176.69
4.3.10.0630.0176.69
4.3.00.0700.0206.69

preferences:
41.66 ms | 401 KiB | 5 Q