3v4l.org

run code in 300+ PHP versions simultaneously
<?php require_once('../../../../Connections/con1.php'); ?> <?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.0080.01216.74
8.3.50.0120.01022.01
8.3.40.0070.01118.96
8.3.30.0110.00319.22
8.3.20.0080.00020.07
8.3.10.0080.00023.52
8.3.00.0040.00420.68
8.2.180.0120.00316.75
8.2.170.0110.00422.96
8.2.160.0110.00320.33
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0040.00421.98
8.2.110.0030.00622.05
8.2.100.0080.00417.91
8.2.90.0050.00319.16
8.2.80.0080.00018.03
8.2.70.0060.00317.63
8.2.60.0030.00618.04
8.2.50.0040.00418.07
8.2.40.0030.00618.34
8.2.30.0000.00718.18
8.2.20.0040.00417.68
8.2.10.0040.00419.42
8.2.00.0030.00617.77
8.1.280.0060.01325.92
8.1.270.0050.00323.88
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00623.79
8.1.230.0090.00319.00
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0040.00417.35
8.1.190.0040.00417.40
8.1.180.0080.00018.10
8.1.170.0070.00418.46
8.1.160.0050.00222.05
8.1.150.0000.00718.58
8.1.140.0030.00617.41
8.1.130.0070.00017.85
8.1.120.0000.00717.35
8.1.110.0040.00417.33
8.1.100.0050.00217.45
8.1.90.0040.00417.36
8.1.80.0050.00217.46
8.1.70.0030.00317.38
8.1.60.0040.00417.62
8.1.50.0040.00417.55
8.1.40.0050.00217.60
8.1.30.0040.00417.65
8.1.20.0070.00017.66
8.1.10.0000.00817.57
8.1.00.0030.00617.56
8.0.300.0040.00418.77
8.0.290.0070.00017.30
8.0.280.0070.00018.55
8.0.270.0040.00417.46
8.0.260.0070.00017.00
8.0.250.0030.00317.09
8.0.240.0030.00617.14
8.0.230.0070.00017.10
8.0.220.0040.00417.02
8.0.210.0000.00717.02
8.0.200.0000.00717.15
8.0.190.0040.00417.16
8.0.180.0000.00817.16
8.0.170.0030.00616.94
8.0.160.0060.00317.15
8.0.150.0000.00816.98
8.0.140.0070.00017.01
8.0.130.0030.00313.48
8.0.120.0040.00417.01
8.0.110.0000.00716.88
8.0.100.0000.00716.96
8.0.90.0000.00817.02
8.0.80.0120.00417.11
8.0.70.0050.00316.93
8.0.60.0050.00317.05
8.0.50.0030.00516.95
8.0.30.0100.01117.25
8.0.20.0130.00617.40
8.0.10.0050.00217.02
8.0.00.0080.01416.85
7.4.330.0020.00215.09
7.4.320.0030.00316.64
7.4.300.0030.00316.64
7.4.290.0050.00216.59
7.4.280.0000.00716.55
7.4.270.0040.00416.53
7.4.260.0030.00716.44
7.4.250.0000.00716.45
7.4.240.0000.00716.64
7.4.230.0000.00716.71
7.4.220.0150.00616.50
7.4.210.0090.00916.55
7.4.200.0070.00016.74
7.4.190.0070.00016.50
7.4.160.0110.00416.47
7.4.150.0120.00617.40
7.4.140.0110.00817.86
7.4.130.0080.01016.60
7.4.120.0100.01516.68
7.4.110.0140.00316.50
7.4.100.0120.00916.71
7.4.90.0070.01616.57
7.4.80.0030.01419.39
7.4.70.0060.01016.52
7.4.60.0140.00316.56
7.4.50.0030.00316.46
7.4.40.0120.00022.77
7.4.30.0070.01316.55
7.4.00.0070.01014.88
7.3.330.0020.00213.15
7.3.320.0000.00513.29
7.3.310.0040.00416.42
7.3.300.0030.00316.34
7.3.290.0130.00716.34
7.3.280.0070.01116.29
7.3.270.0160.00317.40
7.3.260.0160.00316.47
7.3.250.0130.00816.39
7.3.240.0060.01116.43
7.3.230.0030.01416.45
7.3.210.0090.00916.28
7.3.200.0160.00619.39
7.3.190.0070.01416.41
7.3.180.0110.01116.47
7.3.170.0110.00516.36
7.3.160.0060.01016.37
7.3.120.0120.00514.80
7.3.110.0030.01114.84
7.3.100.0030.01114.76
7.3.90.0050.00815.00
7.3.80.0090.00714.83
7.3.70.0080.00314.87
7.3.60.0060.00714.58
7.3.50.0020.01214.78
7.3.40.0080.00714.73
7.3.30.0030.00814.72
7.3.20.0080.00716.60
7.3.10.0070.00916.47
7.3.00.0090.00616.44
7.2.330.0070.01016.34
7.2.320.0040.01516.69
7.2.310.0070.01716.62
7.2.300.0100.01216.48
7.2.290.0210.00316.60
7.2.250.0110.00515.11
7.2.240.0080.01114.79
7.2.230.0060.00714.88
7.2.220.0090.00314.79
7.2.210.0100.00514.96
7.2.200.0000.01414.88
7.2.190.0080.00614.82
7.2.180.0060.01014.85
7.2.170.0050.01014.91
7.2.130.0140.00716.56
7.2.120.0300.00316.94
7.2.110.0070.01116.01
7.2.100.0170.01316.64
7.2.90.0090.00916.43
7.2.80.0080.01816.78
7.2.70.0150.00616.54
7.2.60.0220.00316.32
7.2.50.0140.00716.53
7.2.40.0100.01016.66
7.2.30.0140.00716.65
7.2.20.0070.01116.15
7.2.10.0150.00016.60
7.2.00.0080.00818.05
7.1.330.0080.00615.64
7.1.320.0100.00315.71
7.1.310.0090.00615.64
7.1.300.0090.00415.60
7.1.290.0030.01215.56
7.1.280.0050.00715.69
7.1.270.0090.00315.53
7.1.260.0050.00515.68
7.1.250.0280.00015.63
7.1.100.0080.00818.29
7.1.70.0000.00817.02
7.1.60.0100.01319.29
7.1.50.0090.00916.76
7.1.00.0000.08022.30
7.0.200.0030.00516.48
7.0.140.0000.07722.09
7.0.60.0100.07019.86
7.0.50.0030.04317.76
7.0.40.0130.06719.92
7.0.30.0470.05720.13
7.0.20.0270.04720.17
7.0.10.0070.06320.31
7.0.00.0130.04720.21
5.6.210.0070.06720.55
5.6.200.0000.04718.17
5.6.190.0200.04320.48
5.6.180.0200.05320.61
5.6.170.0330.06320.53
5.6.160.0000.06720.51
5.6.150.0070.04018.22
5.6.140.0100.07718.25
5.6.130.0200.07018.16
5.6.120.0070.08021.08
5.6.110.0130.08020.99
5.6.100.0000.04321.03
5.6.90.0130.07020.98
5.6.80.0030.07320.35
5.6.70.4400.04020.38
5.5.350.0100.08020.54
5.5.340.0030.04017.98
5.5.330.0070.07720.38
5.5.320.0330.07720.50
5.5.310.0370.04020.52
5.5.300.0070.08018.09
5.5.290.0030.04017.93
5.5.280.0000.07320.78
5.5.270.0130.03020.88
5.5.260.0070.08020.66
5.5.250.0070.07720.48
5.5.240.0130.06320.29
5.4.450.0700.03719.57
5.4.440.0130.06019.55
5.4.430.0400.06319.57
5.4.420.0230.05019.45
5.4.410.0470.05019.38
5.4.400.0170.05018.92
5.4.390.0270.04319.11
5.4.380.0430.05318.60
5.4.370.0100.06018.48
5.4.360.0230.04718.75
5.4.350.0270.05018.76
5.4.340.0230.05018.51
5.4.320.0060.03712.53
5.4.310.0060.04212.52
5.4.300.0070.04012.53
5.4.290.0120.04412.52
5.4.280.0080.03912.42
5.4.270.0050.03812.42
5.4.260.0080.03512.42
5.4.250.0040.03912.42
5.4.240.0060.03512.42
5.4.230.0100.04512.41
5.4.220.0070.04412.41
5.4.210.0060.03612.41
5.4.200.0100.04012.41
5.4.190.0060.05012.41
5.4.180.0060.03612.41
5.4.170.0130.04412.41
5.4.160.0150.04412.39
5.4.150.0190.04012.39
5.4.140.0210.04012.08
5.4.130.0150.04412.07
5.4.120.0190.04212.02
5.4.110.0150.07412.02
5.4.100.0160.04212.02
5.4.90.0130.04812.02
5.4.80.0150.04412.02
5.4.70.0200.03812.02
5.4.60.0130.04612.01
5.4.50.0140.04212.02
5.4.40.0220.06412.00
5.4.30.0180.03912.00
5.4.20.0170.04112.00
5.4.10.0120.04612.00
5.4.00.0140.04311.49
5.3.290.0070.04512.80
5.3.280.0040.04512.71
5.3.270.0260.06512.73
5.3.260.0130.04712.72
5.3.250.0150.04612.72
5.3.240.0180.04812.72
5.3.230.0190.04312.71
5.3.220.0160.04512.68
5.3.210.0140.04712.68
5.3.200.0170.04612.68
5.3.190.0200.04812.68
5.3.180.0140.04712.67
5.3.170.0250.06812.68
5.3.160.0190.04212.67
5.3.150.0140.04712.68
5.3.140.0140.04512.66
5.3.130.0150.04512.66
5.3.120.0170.04412.66
5.3.110.0220.04012.66
5.3.100.0150.04612.14
5.3.90.0160.04312.12
5.3.80.0160.04212.11
5.3.70.0150.04412.11
5.3.60.0190.04312.09
5.3.50.0210.06812.05
5.3.40.0160.04312.05
5.3.30.0140.04612.01
5.3.20.0180.07211.79
5.3.10.0130.04411.76
5.3.00.0180.03811.73
5.2.170.0160.0329.24
5.2.160.0120.0349.23
5.2.150.0110.0359.24
5.2.140.0130.0349.24
5.2.130.0160.0339.20
5.2.120.0150.0319.20
5.2.110.0120.0359.20
5.2.100.0150.0349.21
5.2.90.0160.0339.20
5.2.80.0140.0359.18
5.2.70.0140.0359.19
5.2.60.0270.0529.14
5.2.50.0100.0389.12
5.2.40.0130.0399.09
5.2.30.0160.0349.06
5.2.20.0120.0359.07
5.2.10.0090.0388.97
5.2.00.0140.0348.82
5.1.60.0100.0328.11
5.1.50.0100.0368.11
5.1.40.0150.0278.09
5.1.30.0140.0308.44
5.1.20.0130.0308.47
5.1.10.0190.0598.19
5.1.00.0120.0318.19
5.0.50.0140.0246.66
5.0.40.0050.0286.53
5.0.30.0080.0376.34
5.0.20.0100.0236.31
5.0.10.0100.0236.29
5.0.00.0190.0586.27
4.4.90.0070.0224.78
4.4.80.0100.0174.75
4.4.70.0100.0234.75
4.4.60.0150.0184.76
4.4.50.0090.0174.77
4.4.40.0060.0364.71
4.4.30.0090.0194.75
4.4.20.0080.0204.84
4.4.10.0090.0214.85
4.4.00.0200.0814.76
4.3.110.0110.0194.67
4.3.100.0090.0164.67
4.3.90.0100.0154.64
4.3.80.0090.0284.58
4.3.70.0100.0154.63
4.3.60.0070.0214.63
4.3.50.0060.0204.62
4.3.40.0070.0304.54
4.3.30.0070.0183.34
4.3.20.0040.0203.33
4.3.10.0050.0203.30
4.3.00.0070.03713.14

preferences:
40.8 ms | 401 KiB | 5 Q