3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dbname = ''; $dbuser = 'barry'; $dbpass = 'Barry123$'; $dbhost = 'mysql://thrive-lms.cgbwgdsqerhj.ap-southeast-2.rds.amazonaws.com'; $connect = mysql_connect($dbhost, $dbuser, $dbpass) or die("Unable to Connect to '$dbhost'"); mysql_select_db($dbname) or die("Could not open the db '$dbname'"); $test_query = "SHOW TABLES FROM $dbname"; $result = mysql_query($test_query); $tblCnt = 0; while($tbl = mysql_fetch_array($result)) { $tblCnt++; } if (!$tblCnt) { echo "There are no tables<br />n"; } else { echo "There are $tblCnt tables<br />n"; } ?>

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.70.0110.00718.31
8.3.60.0110.00718.50
8.3.50.0230.00821.91
8.3.40.0070.01018.88
8.3.30.0060.01018.76
8.3.20.0050.00220.34
8.3.10.0000.00821.90
8.3.00.0080.00018.04
8.2.190.0070.01118.64
8.2.180.0080.00816.75
8.2.170.0070.00722.96
8.2.160.0110.00420.39
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0060.00317.50
8.2.110.0090.00022.25
8.2.100.0080.00419.23
8.2.90.0040.00419.17
8.2.80.0040.00817.97
8.2.70.0030.00517.63
8.2.60.0040.00417.90
8.2.50.0040.00418.07
8.2.40.0000.00719.38
8.2.30.0000.00720.63
8.2.20.0080.00017.71
8.2.10.0020.00518.09
8.2.00.0040.00418.04
8.1.280.0080.00825.92
8.1.270.0060.01322.11
8.1.260.0070.00026.35
8.1.250.0020.00528.09
8.1.240.0070.00322.53
8.1.230.0090.00317.42
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0000.01117.35
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0000.00918.50
8.1.160.0040.00421.95
8.1.150.0000.00818.88
8.1.140.0080.00017.40
8.1.130.0030.00317.59
8.1.120.0030.00517.45
8.1.110.0000.00717.35
8.1.100.0030.00517.35
8.1.90.0060.00317.31
8.1.80.0050.00217.34
8.1.70.0070.00017.42
8.1.60.0040.00417.39
8.1.50.0000.00817.56
8.1.40.0050.00817.48
8.1.30.0000.00817.73
8.1.20.0060.00317.69
8.1.10.0060.00317.62
8.1.00.0070.00317.41
8.0.300.0040.00418.84
8.0.290.0040.00416.75
8.0.280.0030.00318.29
8.0.270.0080.00017.20
8.0.260.0030.00317.20
8.0.250.0000.00716.93
8.0.240.0040.00416.91
8.0.230.0070.00016.86
8.0.220.0040.00416.80
8.0.210.0040.00416.93
8.0.200.0030.00316.81
8.0.190.0000.00816.84
8.0.180.0030.00716.95
8.0.170.0000.00716.93
8.0.160.0000.00816.97
8.0.150.0070.00016.88
8.0.140.0000.00816.74
8.0.130.0070.00013.36
8.0.120.0080.00016.83
8.0.110.0000.00816.80
8.0.100.0040.00416.79
8.0.90.0070.00016.89
8.0.80.0120.00316.84
8.0.70.0000.00716.89
8.0.60.0030.00316.79
8.0.50.0020.00516.92
8.0.30.0100.00817.00
8.0.20.0080.01117.40
8.0.10.0000.00717.13
8.0.00.0140.00416.63
7.4.330.0050.00015.08
7.4.320.0030.00316.51
7.4.300.0030.00316.41
7.4.290.0030.00316.65
7.4.280.0050.00516.39
7.4.270.0000.00716.63
7.4.260.0030.00316.48
7.4.250.0030.00516.57
7.4.240.0030.00516.61
7.4.230.0000.00716.40
7.4.220.0100.00716.50
7.4.210.0110.01116.68
7.4.200.0000.00716.58
7.4.160.0080.00816.58
7.4.150.0070.01017.40
7.4.140.0160.00517.86
7.4.130.0060.01116.43
7.4.120.0090.00916.43
7.4.110.0060.01216.80
7.4.100.0130.01216.58
7.4.90.0120.00816.45
7.4.80.0060.01019.39
7.4.70.0100.00716.66
7.4.60.0060.00916.54
7.4.50.0040.00416.68
7.4.40.0110.00916.50
7.4.30.0110.00816.50
7.4.00.0000.01415.21
7.3.330.0000.00613.06
7.3.320.0050.00012.94
7.3.310.0030.00316.22
7.3.300.0030.00316.27
7.3.290.0100.00716.24
7.3.280.0090.00816.26
7.3.270.0100.00917.40
7.3.260.0070.01616.35
7.3.250.0110.00716.36
7.3.240.0100.00716.34
7.3.230.0100.00716.41
7.3.210.0120.00316.21
7.3.200.0140.00316.39
7.3.190.0120.00316.32
7.3.180.0090.00616.20
7.3.170.0070.01116.38
7.3.160.0150.00616.52
7.3.10.0110.00016.25
7.3.00.0030.00916.19
7.2.330.0030.01416.43
7.2.320.0130.00416.31
7.2.310.0100.01016.62
7.2.300.0030.01316.39
7.2.290.0000.01816.48
7.2.130.0060.00916.55
7.2.120.0100.00316.32
7.2.110.0050.00516.13
7.2.100.0060.00616.52
7.2.90.0100.00016.17
7.2.80.0090.00316.61
7.2.70.0040.00816.35
7.2.60.0060.00616.57
7.2.50.0060.00916.80
7.2.40.0100.00316.41
7.2.30.0040.01116.52
7.2.20.0030.00916.70
7.2.10.0070.00416.62
7.2.00.0010.01117.77
7.1.250.0040.00815.27
7.1.200.0060.00615.45
7.1.100.0060.00617.86
7.1.70.0030.00717.05
7.1.60.0110.01419.20
7.1.50.0070.01716.75
7.1.00.0030.07322.28
7.0.200.0000.00816.72
7.0.60.0200.07320.02
7.0.50.0000.07017.90
7.0.40.0100.04020.24
7.0.30.0230.05320.13
7.0.20.0230.06720.16
7.0.10.0100.06720.09
7.0.00.0030.05720.20
5.6.280.0030.07320.86
5.6.210.0070.04720.46
5.6.200.0130.07018.21
5.6.190.0030.05020.41
5.6.180.0270.04720.35
5.6.170.0270.06020.41
5.6.160.0070.08320.46
5.6.150.0030.05318.09
5.6.140.0070.07718.18
5.6.130.0000.05318.07
5.6.120.0100.08320.98
5.6.110.0100.08020.96
5.6.100.0170.04321.08
5.6.90.0100.08021.10
5.6.80.0030.06720.38
5.5.350.0200.05720.36
5.5.340.0070.03718.02
5.5.330.0100.07320.46
5.5.320.0030.04720.41
5.5.310.0370.03720.20
5.5.300.0130.06017.89
5.5.290.0070.08317.98
5.5.280.0130.07720.96
5.5.270.0030.08720.78
5.5.260.0070.07320.84
5.5.250.0000.08720.58
5.5.240.0000.05720.16
5.4.450.0800.06319.32
5.4.440.0570.07019.43
5.4.430.0700.05719.31
5.4.420.0630.06319.10
5.4.410.0700.05019.48
5.4.400.0730.06018.87
5.4.390.0730.06019.21
5.4.380.0630.06319.14
5.4.370.0500.06719.05
5.4.360.0630.05319.29
5.4.350.0600.05719.29
5.4.340.0930.05319.03
5.4.320.0630.05019.16
5.4.310.0600.05718.86
5.4.300.0700.04319.29
5.4.290.0800.04319.22
5.4.280.0870.05719.07
5.4.270.0630.05719.23
5.4.260.0600.05318.87
5.4.250.0800.04319.07
5.4.240.0730.05318.76
5.4.230.0700.05018.94
5.4.220.0700.05719.30
5.4.210.0770.07018.76
5.4.200.0770.06019.14
5.4.190.0670.05018.95
5.4.180.0600.06318.86
5.4.170.0630.06019.09
5.4.160.0770.06719.22
5.4.150.0730.05719.27
5.4.140.0670.05016.27
5.4.130.0700.04316.27
5.4.120.0600.05016.23
5.4.110.0730.05316.21
5.4.100.0470.06316.21
5.4.90.0600.05016.06
5.4.80.0600.05316.36
5.4.70.0300.06716.39
5.4.60.0270.06316.37
5.4.50.0370.06016.27
5.4.40.0270.03016.33
5.4.30.0270.06716.42
5.4.20.0230.06016.36
5.4.10.0200.03316.36

preferences:
84.84 ms | 401 KiB | 5 Q