3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } mysql_select_db($database_con1, $con1); $query_info = "select regkey, name1, homegrp1, city, state, regkey from convregis"; $info = mysql_query($query_info, $con1) or die(mysql_error()); $row_info = mysql_fetch_assoc($info); $totalRows_info = mysql_num_rows($info); ?>

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.0170.00316.88
8.3.50.0080.00921.95
8.3.40.0110.00718.79
8.3.30.0140.00418.76
8.3.20.0070.00020.39
8.3.10.0000.00823.70
8.3.00.0080.00020.81
8.2.180.0130.00918.54
8.2.170.0070.00722.96
8.2.160.0100.00620.52
8.2.150.0080.00024.18
8.2.140.0000.00924.66
8.2.130.0140.00426.16
8.2.120.0040.00422.08
8.2.110.0040.00422.25
8.2.100.0040.00817.84
8.2.90.0050.00219.08
8.2.80.0000.00817.97
8.2.70.0050.00317.75
8.2.60.0050.00318.04
8.2.50.0040.00418.07
8.2.40.0000.00918.03
8.2.30.0030.00518.02
8.2.20.0040.00417.61
8.2.10.0050.00317.69
8.2.00.0060.00317.66
8.1.280.0040.01125.92
8.1.270.0000.00824.04
8.1.260.0000.00826.35
8.1.250.0030.00628.09
8.1.240.0090.00023.81
8.1.230.0070.00419.14
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0080.00017.41
8.1.180.0080.00018.10
8.1.170.0070.00318.65
8.1.160.0030.00521.90
8.1.150.0040.00418.59
8.1.140.0000.00817.41
8.1.130.0030.00317.78
8.1.120.0050.00217.38
8.1.110.0000.00817.39
8.1.100.0040.00417.41
8.1.90.0000.00717.41
8.1.80.0000.00717.32
8.1.70.0000.00717.33
8.1.60.0060.00317.54
8.1.50.0080.00017.36
8.1.40.0000.00817.32
8.1.30.0030.00617.47
8.1.20.0030.00617.52
8.1.10.0080.00017.51
8.1.00.0030.00717.47
8.0.300.0070.00018.77
8.0.290.0000.00717.16
8.0.280.0000.00718.51
8.0.270.0000.00817.32
8.0.260.0000.00616.78
8.0.250.0000.00717.07
8.0.240.0060.00317.08
8.0.230.0040.00416.91
8.0.220.0000.00716.98
8.0.210.0000.00716.90
8.0.200.0000.00616.96
8.0.190.0070.00017.01
8.0.180.0040.00417.00
8.0.170.0000.00716.98
8.0.160.0000.00716.96
8.0.150.0000.00716.84
8.0.140.0000.00716.86
8.0.130.0060.00013.36
8.0.120.0070.00016.96
8.0.110.0050.00316.89
8.0.100.0090.00016.96
8.0.90.0000.00716.80
8.0.80.0130.00617.01
8.0.70.0040.00417.04
8.0.60.0030.00516.93
8.0.50.0040.00416.91
8.0.30.0130.00917.19
8.0.20.0080.01017.40
8.0.10.0040.00416.81
8.0.00.0110.00916.84
7.4.330.0000.00515.14
7.4.320.0040.00416.54
7.4.300.0000.00616.56
7.4.290.0040.00416.39
7.4.280.0070.00016.46
7.4.270.0040.00416.57
7.4.260.0030.00316.52
7.4.250.0080.00016.44
7.4.240.0030.00316.57
7.4.230.0000.00716.30
7.4.220.0180.00316.53
7.4.210.0080.00716.56
7.4.200.0070.00016.43
7.4.190.0000.00716.62
7.4.160.0130.01016.31
7.4.150.0050.01317.40
7.4.140.0100.01117.86
7.4.130.0130.00316.55
7.4.120.0090.00916.53
7.4.110.0120.01316.60
7.4.100.0100.00716.53
7.4.90.0090.00916.61
7.4.80.0100.01319.39
7.4.70.0120.00616.59
7.4.60.0070.01016.55
7.4.50.0040.00416.43
7.4.40.0100.00722.77
7.4.30.0150.00016.55
7.4.00.0030.01414.84
7.3.330.0050.00013.19
7.3.320.0020.00213.18
7.3.310.0000.00716.14
7.3.300.0040.00416.36
7.3.290.0110.00416.32
7.3.280.0060.01016.31
7.3.270.0120.00617.40
7.3.260.0190.01116.24
7.3.250.0080.01116.53
7.3.240.0130.00316.41
7.3.230.0030.01316.39
7.3.210.0070.01116.53
7.3.200.0100.00719.39
7.3.190.0130.00316.43
7.3.180.0130.00916.26
7.3.170.0180.00316.27
7.3.160.0100.00616.36
7.3.120.0110.00714.88
7.3.110.0130.00314.80
7.3.100.0040.00814.67
7.3.90.0000.01714.82
7.3.80.0000.01614.39
7.3.70.0070.01014.68
7.3.60.0030.01014.81
7.3.50.0030.01414.68
7.3.40.0070.01114.89
7.3.30.0000.01314.78
7.3.20.0120.00316.64
7.3.10.0080.00316.55
7.3.00.0090.00616.50
7.2.330.0120.00916.44
7.2.320.0080.00816.56
7.2.310.0100.00616.66
7.2.300.0120.00616.55
7.2.290.0000.01916.57
7.2.240.0000.00914.89
7.2.230.0100.00314.84
7.2.220.0130.00015.06
7.2.210.0090.00315.04
7.2.200.0030.01314.90
7.2.190.0000.01115.11
7.2.180.0050.00514.95
7.2.170.0100.00714.99
7.2.160.0030.00815.15
7.2.150.0100.00716.91
7.2.140.0060.00916.91
7.2.130.0070.01016.77
7.2.120.0030.00716.77
7.2.110.0070.00716.80
7.2.100.0050.00516.78
7.2.90.0070.00716.53
7.2.80.0070.00716.64
7.2.70.0060.00616.74
7.2.60.0090.00816.85
7.2.50.0000.01416.75
7.2.40.0030.00716.96
7.2.30.0030.01316.82
7.2.20.0040.01116.69
7.2.10.0000.00816.96
7.2.00.0090.00817.66
7.1.330.0060.00615.44
7.1.320.0040.01115.52
7.1.310.0100.00715.73
7.1.300.0030.01015.64
7.1.290.0030.01315.24
7.1.280.0070.01015.69
7.1.270.0100.00315.77
7.1.260.0030.01015.82
7.1.250.0130.00015.80
7.1.200.0050.00615.78
7.1.70.0030.01017.04
7.1.60.0040.01817.17
7.1.50.0030.01616.58
7.1.00.0000.08022.27
7.0.200.0000.01616.75
7.0.140.0030.07321.99
7.0.60.0030.06019.95
7.0.50.0000.05717.92
7.0.40.0100.04020.02
7.0.30.0170.04720.07
7.0.20.0300.07320.10
7.0.10.0100.08320.33
7.0.00.0070.08320.16
5.6.280.0070.07021.16
5.6.210.0070.07020.72
5.6.200.0070.08318.26
5.6.190.0030.04320.42
5.6.180.0130.06020.39
5.6.170.0170.04320.51
5.6.160.0100.07320.71
5.6.150.0070.08018.17
5.6.140.0100.07718.24
5.6.130.0070.07718.27
5.6.120.0070.08021.05
5.6.110.0000.07720.95
5.6.100.0030.08720.91
5.6.90.0170.07720.89
5.6.80.0030.08320.51
5.5.350.0030.08020.39
5.5.340.0000.09018.02
5.5.330.0030.04720.27
5.5.320.0230.04320.52
5.5.310.0270.05320.35
5.5.300.0000.08717.96
5.5.290.0030.04318.07
5.5.280.0070.04320.86
5.5.270.0100.08320.81
5.5.260.0000.09720.90
5.5.250.0070.03720.56
5.5.240.0000.06320.17
5.4.450.0230.05019.38
5.4.440.0300.04719.59
5.4.430.0030.06019.65
5.4.420.0170.05319.20
5.4.410.0130.06019.42
5.4.400.0100.05318.93
5.4.390.0170.05319.19
5.4.380.0200.05718.74
5.4.370.0230.05718.64
5.4.360.0170.05718.54
5.4.350.0200.05718.84
5.4.340.0170.06018.58
5.4.320.0020.04312.52
5.4.310.0070.03812.52
5.4.300.0040.03912.52
5.4.290.0080.04212.50
5.4.280.0070.03712.41
5.4.270.0070.04112.41
5.4.260.0040.03912.41
5.4.250.0050.04112.41
5.4.240.0030.03812.41
5.4.230.0100.03912.40
5.4.220.0090.04012.40
5.4.210.0060.03812.40
5.4.200.0070.04412.40
5.4.190.0050.04212.39
5.4.180.0070.03912.39
5.4.170.0130.04412.39
5.4.160.0120.04712.38
5.4.150.0170.04112.38
5.4.140.0140.07412.06
5.4.130.0120.04512.05
5.4.120.0080.04812.01
5.4.110.0140.04212.00
5.4.100.0160.04212.00
5.4.90.0120.04512.01
5.4.80.0180.03912.01
5.4.70.0190.03912.00
5.4.60.0220.09712.00
5.4.50.0170.03912.00
5.4.40.0170.03911.98
5.4.30.0140.04511.99
5.4.20.0080.04911.99
5.4.10.0190.06811.98
5.4.00.0150.04111.47
5.3.290.0030.04612.80
5.3.280.0040.03912.71
5.3.270.0160.04612.73
5.3.260.0170.04312.72
5.3.250.0120.04912.72
5.3.240.0140.04612.72
5.3.230.0140.04612.71
5.3.220.0160.04512.68
5.3.210.0230.03912.68
5.3.200.0260.09712.68
5.3.190.0150.04712.68
5.3.180.0190.04112.68
5.3.170.0180.04112.67
5.3.160.0160.04612.67
5.3.150.0160.04412.67
5.3.140.0150.04412.66
5.3.130.0170.04212.66
5.3.120.0160.04412.66
5.3.110.0150.04712.65
5.3.100.0180.07212.13
5.3.90.0140.04512.11
5.3.80.0160.04512.10
5.3.70.0170.04112.10
5.3.60.0210.06812.08
5.3.50.0190.04212.04
5.3.40.0150.04512.03
5.3.30.0180.03912.00
5.3.20.0450.07411.79
5.3.10.0160.04211.74
5.3.00.0180.04111.72
5.2.170.0090.0389.23
5.2.160.0150.0319.23
5.2.150.0190.0599.23
5.2.140.0120.0349.23
5.2.130.0130.0329.19
5.2.120.0160.0339.19
5.2.110.0090.0389.19
5.2.100.0140.0319.20
5.2.90.0130.0329.18
5.2.80.0110.0369.18
5.2.70.0160.0329.18
5.2.60.0150.0319.13
5.2.50.0090.0379.10
5.2.40.0120.0349.08
5.2.30.0120.0339.05
5.2.20.0120.0339.05
5.2.10.0170.0588.96
5.2.00.0110.0398.81
5.1.60.0100.0288.09
5.1.50.0120.0288.09
5.1.40.0130.0258.08
5.1.30.0130.0288.43
5.1.20.0060.0358.46
5.1.10.0100.0318.18
5.1.00.0100.0308.17
5.0.50.0100.0236.66
5.0.40.0120.0196.51
5.0.30.0080.0356.33
5.0.20.0250.0366.29
5.0.10.0070.0246.27
5.0.00.0120.0316.26
4.4.90.0120.0124.78
4.4.80.0070.0184.76
4.4.70.0070.0184.76
4.4.60.0060.0194.76
4.4.50.0070.0174.77
4.4.40.0090.0574.71
4.4.30.0080.0174.76
4.4.20.0070.0174.85
4.4.10.0100.0154.85
4.4.00.0080.0274.76
4.3.110.0050.0204.67
4.3.100.0040.0204.66
4.3.90.0080.0164.64
4.3.80.0070.0274.58
4.3.70.0050.0194.63
4.3.60.0070.0174.63
4.3.50.0070.0474.63
4.3.40.0060.0274.54
4.3.30.0030.0203.33
4.3.20.0040.0193.31
4.3.10.0040.0183.28
4.3.00.0230.01314.49

preferences:
41.04 ms | 401 KiB | 5 Q