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; } } ?>

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.0120.00318.18
8.3.50.0160.01422.00
8.3.40.0070.00718.73
8.3.30.0120.00919.08
8.3.20.0000.00820.33
8.3.10.0000.00723.66
8.3.00.0060.00320.82
8.2.180.0180.00416.75
8.2.170.0000.01522.96
8.2.160.0140.00022.31
8.2.150.0040.00424.18
8.2.140.0150.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00919.23
8.2.110.0110.00922.25
8.2.100.0080.00317.53
8.2.90.0090.00019.09
8.2.80.0040.00418.04
8.2.70.0060.00317.63
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0050.00318.16
8.2.30.0040.00418.08
8.2.20.0040.00417.62
8.2.10.0000.00717.52
8.2.00.0040.00417.69
8.1.280.0070.01025.92
8.1.270.0050.00324.00
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0130.00323.79
8.1.230.0070.00418.96
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0030.00617.23
8.1.190.0030.00617.28
8.1.180.0040.00418.10
8.1.170.0040.00418.65
8.1.160.0000.00822.07
8.1.150.0000.00818.58
8.1.140.0040.00417.34
8.1.130.0030.00317.86
8.1.120.0040.00417.29
8.1.110.0080.00017.38
8.1.100.0040.00417.39
8.1.90.0000.00717.43
8.1.80.0000.00717.43
8.1.70.0000.00717.36
8.1.60.0060.00317.48
8.1.50.0000.00817.37
8.1.40.0000.00817.41
8.1.30.0040.00417.61
8.1.20.0000.00817.52
8.1.10.0080.00017.27
8.1.00.0040.00417.34
8.0.300.0000.00718.77
8.0.290.0030.00517.04
8.0.280.0000.00718.39
8.0.270.0030.00317.22
8.0.260.0030.00316.78
8.0.250.0040.00416.90
8.0.240.0040.00416.90
8.0.230.0030.00316.78
8.0.220.0000.00716.77
8.0.210.0030.00416.89
8.0.200.0000.00616.84
8.0.190.0070.00016.89
8.0.180.0020.00516.90
8.0.170.0020.00516.89
8.0.160.0040.00416.80
8.0.150.0030.00416.85
8.0.140.0040.00416.86
8.0.130.0030.00313.32
8.0.120.0050.00216.80
8.0.110.0030.00516.87
8.0.100.0080.00016.90
8.0.90.0080.00016.91
8.0.80.0090.00916.83
8.0.70.0000.00816.66
8.0.60.0000.00716.84
8.0.50.0000.00716.69
8.0.30.0100.00816.99
8.0.20.0160.00817.40
8.0.10.0040.00416.81
8.0.00.0140.00716.62
7.4.330.0020.00215.00
7.4.320.0030.00316.38
7.4.300.0000.00716.31
7.4.290.0060.00316.37
7.4.280.0000.00716.50
7.4.270.0000.00716.46
7.4.260.0070.00016.55
7.4.250.0060.00316.43
7.4.240.0050.00216.51
7.4.230.0070.00016.36
7.4.220.0130.01316.66
7.4.210.0080.00916.47
7.4.200.0000.00716.30
7.4.190.0030.00316.65
7.4.160.0030.01216.54
7.4.150.0090.01017.40
7.4.140.0100.00717.86
7.4.130.0100.00716.36
7.4.120.0080.01016.45
7.4.110.0080.00816.34
7.4.100.0060.01316.66
7.4.90.0030.01516.51
7.4.80.0070.01016.52
7.4.70.0060.00916.45
7.4.60.0060.01516.34
7.4.50.0040.00416.33
7.4.40.0070.00722.77
7.4.30.0140.00616.32
7.4.00.0030.01414.84
7.3.330.0000.00513.02
7.3.320.0000.00513.18
7.3.310.0000.00716.03
7.3.300.0000.00716.16
7.3.290.0070.00716.24
7.3.280.0130.00516.20
7.3.270.0100.01017.40
7.3.260.0110.00516.42
7.3.250.0090.01216.52
7.3.240.0080.00816.22
7.3.230.0080.00816.39
7.3.210.0070.01016.25
7.3.200.0210.00319.39
7.3.190.0030.01416.48
7.3.180.0110.00616.44
7.3.170.0100.00616.54
7.3.160.0080.00816.45
7.3.120.0040.01114.95
7.2.330.0100.00716.38
7.2.320.0070.01016.59
7.2.310.0100.01016.53
7.2.300.0100.00516.69
7.2.290.0100.00616.64
7.2.60.0030.00916.97
7.2.00.0000.01219.26
7.1.200.0030.00515.42
7.1.100.0040.00718.12
7.1.70.0000.01217.04
7.1.60.0070.01319.32
7.1.50.0040.00716.99
7.1.00.0100.06722.41
7.0.200.0340.00414.71
7.0.140.0030.07722.12
7.0.60.0070.07319.96
7.0.50.0030.04317.98
7.0.40.0170.08020.09
7.0.30.0300.06320.26
7.0.20.0330.07020.24
7.0.10.0370.08020.09
7.0.00.0030.05320.06
5.6.280.0070.07021.14
5.6.210.0030.08720.45
5.6.200.0130.07318.20
5.6.190.0130.07320.50
5.6.180.0030.04320.63
5.6.170.0270.05020.46
5.6.160.0070.08020.61
5.6.150.0230.05718.23
5.6.140.0070.04718.17
5.6.130.0000.05018.12
5.6.120.0170.04721.00
5.6.110.0100.08321.15
5.6.100.0030.09721.04
5.6.90.0200.07021.00
5.6.80.0030.07720.47
5.6.70.4330.04320.51
5.5.350.0000.08320.51
5.5.340.0030.05017.98
5.5.330.0000.08020.25
5.5.320.0100.07720.38
5.5.310.0200.05320.27
5.5.300.0070.04317.95
5.5.290.0030.05718.01
5.5.280.0100.04320.74
5.5.270.0230.06720.69
5.5.260.0000.06020.96
5.5.250.0000.09020.70
5.5.240.0170.07720.17
5.4.450.0770.04719.52
5.4.440.0330.04319.16
5.4.430.0530.04719.19
5.4.420.0500.04319.27
5.4.410.0230.04719.03
5.4.400.0400.05018.77
5.4.390.0270.07318.62
5.4.380.0830.05718.50
5.4.370.0370.06018.72
5.4.360.0330.05018.57
5.4.350.0400.07318.78
5.4.340.0230.05318.79
5.4.320.0060.03712.52
5.4.310.0080.03512.51
5.4.300.0140.03212.51
5.4.290.0070.04412.51
5.4.280.0060.03812.40
5.4.270.0080.03412.40
5.4.260.0080.03512.40
5.4.250.0060.04512.40
5.4.240.0110.04112.40
5.4.230.0060.04212.39
5.4.220.0080.03812.39
5.4.210.0060.03812.39
5.4.200.0060.03812.39
5.4.190.0040.03712.39
5.4.180.0040.04312.39
5.4.170.0280.09312.39
5.4.160.0180.04412.38
5.4.150.0380.08712.37
5.4.140.0470.10712.06
5.4.130.0140.04612.04
5.4.120.0200.03912.00
5.4.110.0300.08912.00
5.4.100.0420.08012.00
5.4.90.0310.09112.00
5.4.80.0160.04412.00
5.4.70.0320.08512.00
5.4.60.0140.04412.00
5.4.50.0510.06812.00
5.4.40.0340.08511.98
5.4.30.0350.08311.98
5.4.20.0390.08211.98
5.4.10.0150.04311.98
5.4.00.0140.04311.47
5.3.290.0090.04112.80
5.3.280.0090.04412.71
5.3.270.0360.08712.72
5.3.260.0400.08412.72
5.3.250.0190.04112.72
5.3.240.0140.04512.72
5.3.230.0160.04712.71
5.3.220.0300.09012.68
5.3.210.0150.04712.68
5.3.200.0350.08612.68
5.3.190.0210.04312.68
5.3.180.0270.09712.67
5.3.170.0190.04312.67
5.3.160.0350.07412.67
5.3.150.0280.03512.67
5.3.140.0550.05612.66
5.3.130.0490.04012.66
5.3.120.0790.04712.66
5.3.110.0400.08212.66
5.3.100.0800.05412.12
5.3.90.0210.04212.11
5.3.80.0480.07712.10
5.3.70.0130.04912.09
5.3.60.0490.07012.08
5.3.50.0330.09212.03
5.3.40.0270.09512.03
5.3.30.0190.04212.00
5.3.20.0230.06911.78
5.3.10.0370.01911.73
5.3.00.0310.07611.72
5.2.170.0350.0739.23
5.2.160.0110.0379.22
5.2.150.0170.0319.22
5.2.140.0340.0769.22
5.2.130.0250.0729.18
5.2.120.0090.0379.18
5.2.110.0130.0359.19
5.2.100.0140.0349.20
5.2.90.0320.0789.19
5.2.80.0130.0379.18
5.2.70.0240.0859.18
5.2.60.0120.0369.13
5.2.50.0310.0759.10
5.2.40.0330.0789.07
5.2.30.0140.0349.05
5.2.20.0090.0379.05
5.2.10.0110.0358.95
5.2.00.0250.0818.80
5.1.60.0120.0298.09
5.1.50.0080.0358.09
5.1.40.0100.0298.08
5.1.30.0160.0298.42
5.1.20.0130.0298.45
5.1.10.0270.0788.17
5.1.00.0180.0428.16
5.0.50.0110.0246.65
5.0.40.0350.0596.51
5.0.30.0090.0376.32
5.0.20.0100.0366.29
5.0.10.0130.0206.27
5.0.00.0070.0386.25
4.4.90.0120.0174.78
4.4.80.0120.0164.75
4.4.70.0050.0234.75
4.4.60.0110.0184.75
4.4.50.0130.0134.77
4.4.40.0080.0294.71
4.4.30.0060.0214.75
4.4.20.0090.0224.85
4.4.10.0090.0184.84
4.4.00.0090.0274.76
4.3.110.0090.0174.67
4.3.100.0100.0154.66
4.3.90.0090.0174.63
4.3.80.0110.0254.58
4.3.70.0050.0194.63
4.3.60.0090.0194.63
4.3.50.0230.0634.63
4.3.40.0070.0284.54
4.3.30.0030.0213.33
4.3.20.0050.0183.31
4.3.10.0080.0153.28
4.3.00.0130.01015.45

preferences:
43.59 ms | 401 KiB | 5 Q