3v4l.org

run code in 300+ PHP versions simultaneously
<?php $host= '185.30.146.120'; $username = 'arenssql1'; $pwd= 'Arensi'; $db='arenssql1'; $con=mysqli_connect($host,$username,$pwd,$db) or die('Unable to connect'); if(mysqli_connect_error($con)) { echo "Failed to connect"; } $query=mysqli_query($con, "SELECT * FROM news"); if($query) { while($row-mysqli_fetch_array($query)) { $flag[] =$row; } print(json_encode($flag)); } 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.00318.43
8.3.50.0040.01117.78
8.3.40.0090.00918.98
8.3.30.0090.00618.84
8.3.20.0000.01018.73
8.3.10.0040.00423.52
8.3.00.0000.00819.97
8.2.180.0150.00018.14
8.2.170.0120.00322.96
8.2.160.0030.01222.13
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0090.01219.37
8.2.120.0070.00026.35
8.2.110.0030.00622.18
8.2.100.0030.00917.72
8.2.90.0040.00417.63
8.2.80.0090.00018.74
8.2.70.0040.00417.79
8.2.60.0030.00617.91
8.2.50.0050.00318.10
8.2.40.0040.00420.46
8.2.30.0040.00419.34
8.2.20.0080.00018.01
8.2.10.0000.00717.96
8.2.00.0040.00418.27
8.1.280.0110.00425.92
8.1.270.0040.00420.25
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00617.36
8.1.230.0110.00020.93
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0080.00017.23
8.1.190.0000.00917.39
8.1.180.0000.00818.10
8.1.170.0000.00818.90
8.1.160.0040.00418.76
8.1.150.0070.00020.19
8.1.140.0000.00717.62
8.1.130.0000.00719.04
8.1.120.0050.00217.49
8.1.110.0030.00517.44
8.1.100.0040.00417.46
8.1.90.0000.00717.38
8.1.80.0030.00617.41
8.1.70.0040.00417.31
8.1.60.0040.00417.50
8.1.50.0030.00517.60
8.1.40.0040.00417.50
8.1.30.0080.00017.55
8.1.20.0000.00817.58
8.1.10.0040.00417.50
8.1.00.0050.00317.59
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0000.00818.26
8.0.270.0030.00317.18
8.0.260.0000.00616.84
8.0.250.0000.00717.02
8.0.240.0000.00816.91
8.0.230.0000.00816.97
8.0.220.0040.00416.91
8.0.210.0000.00616.96
8.0.200.0030.00616.95
8.0.190.0000.00716.87
8.0.180.0000.00716.85
8.0.170.0050.00516.95
8.0.160.0040.00416.85
8.0.150.0110.00016.88
8.0.140.0050.00216.76
8.0.130.0070.00013.43
8.0.120.0040.00416.91
8.0.110.0050.00216.86
8.0.100.0000.00716.79
8.0.90.0030.00316.87
8.0.80.0100.01016.95
8.0.70.0080.00016.95
8.0.60.0000.00716.70
8.0.50.0040.00416.91
8.0.30.0120.00717.03
8.0.20.0140.01117.40
8.0.10.0070.00016.91
8.0.00.0180.00816.72
7.4.330.0000.00615.55
7.4.320.0060.00016.55
7.4.300.0000.00616.54
7.4.290.0030.00316.58
7.4.280.0000.00716.57
7.4.270.0030.00316.55
7.4.260.0030.00316.54
7.4.250.0030.00316.41
7.4.240.0030.00616.62
7.4.230.0000.00716.43
7.4.220.0000.00716.63
7.4.210.0090.00716.63
7.4.200.0000.00716.61
7.4.160.0110.00516.55
7.4.150.0130.00417.40
7.4.140.0080.01117.86
7.4.130.0170.00016.57
7.4.120.0080.01116.54
7.4.110.0140.01116.61
7.4.100.0160.00016.65
7.4.90.0100.00716.50
7.4.80.0090.01319.39
7.4.70.0080.01416.60
7.4.60.0170.00616.65
7.4.50.0120.00416.53
7.4.40.0000.01716.50
7.4.00.0080.01014.92
7.3.330.0030.00313.03
7.3.320.0030.00313.24
7.3.310.0080.00016.21
7.3.300.0040.00416.27
7.3.290.0030.00316.36
7.3.280.0060.00916.35
7.3.270.0130.01017.40
7.3.260.0090.00916.38
7.3.250.0090.00816.29
7.3.240.0110.00916.41
7.3.230.0140.00716.48
7.3.210.0100.00616.55
7.3.200.0060.01016.57
7.3.190.0060.00916.33
7.3.180.0070.01016.62
7.3.170.0070.01016.41
7.3.160.0160.00016.48
7.3.120.0040.01214.81
7.3.110.0030.01414.72
7.3.100.0040.00714.68
7.3.90.0070.00714.93
7.3.80.0070.00314.65
7.3.70.0100.00714.76
7.3.60.0000.01514.77
7.3.50.0050.00514.96
7.3.40.0090.00014.82
7.3.30.0000.01414.76
7.3.20.0060.00916.73
7.3.10.0070.00816.49
7.3.00.0050.00816.55
7.2.330.0060.01216.57
7.2.320.0160.00016.58
7.2.310.0060.01116.61
7.2.300.0130.01016.53
7.2.290.0000.01616.52
7.2.250.0100.00315.16
7.2.240.0060.01014.78
7.2.230.0060.00915.12
7.2.220.0040.00715.21
7.2.210.0080.00514.91
7.2.200.0000.01914.84
7.2.190.0040.01114.63
7.2.180.0070.00614.86
7.2.170.0060.01214.72
7.2.130.0040.00716.84
7.2.120.0040.01216.80
7.2.110.0040.01116.76
7.2.100.0090.00616.90
7.2.90.0090.00317.01
7.2.80.0090.00616.84
7.2.70.0030.00616.82
7.2.60.0050.01016.87
7.2.50.0030.01016.43
7.2.40.0100.00616.60
7.2.30.0040.01116.95
7.2.20.0200.00617.21
7.2.10.0120.01117.22
7.2.00.0130.01217.29
7.1.330.0000.01215.77
7.1.320.0030.00715.73
7.1.310.0030.01015.80
7.1.300.0070.00715.54
7.1.290.0070.00715.76
7.1.280.0060.01215.63
7.1.270.0090.00915.42
7.1.260.0030.01015.64
7.1.250.0070.00715.63
7.1.240.0030.01315.57
7.1.230.0030.00915.70
7.1.220.0090.00615.67
7.1.210.0030.01015.58
7.1.200.0020.01115.61
7.1.190.0090.00615.51
7.1.180.0040.01115.50
7.1.170.0040.01115.63
7.1.160.0090.00615.68
7.1.150.0060.00615.30
7.1.140.0150.00716.21
7.1.130.0130.01116.15
7.1.120.0160.00916.15
7.1.110.0190.00515.65
7.1.100.0190.00615.74
7.1.90.0290.00315.82
7.1.80.0210.00915.72
7.1.70.0180.00815.50
7.1.60.0170.01824.37
7.1.50.0290.01324.24
7.1.40.0250.00823.97
7.1.30.0330.01024.11
7.1.20.0260.01424.14
7.1.10.0190.00715.06
7.1.00.0280.00515.24
7.0.330.0030.01015.30
5.6.380.0030.01313.88

preferences:
58.48 ms | 401 KiB | 5 Q