3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sql = array("inUserID" =>7250, "inCustID" =>15319, "btAll" => "'True'", "btPermPref" => "'True'", "inDisplay"=>0); function pram_alter($array, $key) { //echo implode(',', each($array)); reset($array); $pStr=null; $sqlStatment=null; $bound = count($array); $endSqlStatement = ";"; $count=0; while (list($key, $val) = each($array)) { if ($count < ($bound-1)){ $pStr=$pStr."$key = $val, "; } else { $pStr=$pStr."$key =$val;" .""". "; } $strproc='myProc'; $sqlStatment="exec " . $strproc . " " . $pStr; $count ++; } return $sqlStatment; } $temp=pram_alter($sql, 'pram_alter'); echo $temp; ?>

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)
5.4.320.0040.04312.52
5.4.310.0030.04012.52
5.4.300.0090.03812.52
5.4.290.0060.03812.51
5.4.280.0040.03812.41
5.4.270.0080.03512.41
5.4.260.0060.03712.41
5.4.250.0020.04212.41
5.4.240.0090.03912.41
5.4.230.0060.03912.40
5.4.220.0070.04412.40
5.4.210.0060.03512.40
5.4.200.0060.03812.40
5.4.190.0110.03712.40
5.4.180.0080.04312.39
5.4.170.0060.03612.40
5.4.160.0090.03712.40
5.4.150.0040.03812.40
5.4.140.0100.03912.09
5.4.130.0040.03912.07
5.4.120.0080.04012.04
5.4.110.0050.03912.03
5.4.100.0070.03412.03
5.4.90.0070.04412.03
5.4.80.0060.03912.03
5.4.70.0060.03712.03
5.4.60.0070.03712.03
5.4.50.0090.03212.03
5.4.40.0050.03612.02
5.4.30.0060.03512.01
5.4.20.0060.04312.01
5.4.10.0050.04312.01
5.4.00.0070.03511.51
5.3.290.0070.03912.80
5.3.280.0060.04012.71
5.3.270.0070.03812.73
5.3.260.0070.03812.72
5.3.250.0050.03912.71
5.3.240.0060.04112.71
5.3.230.0080.03812.71
5.3.220.0050.04212.68
5.3.210.0110.04312.68
5.3.200.0060.03712.68
5.3.190.0080.03812.67
5.3.180.0050.03812.67
5.3.170.0080.04212.67
5.3.160.0070.03912.68
5.3.150.0090.05112.67
5.3.140.0100.03812.66
5.3.130.0070.04212.66
5.3.120.0090.04012.66
5.3.110.0030.04312.66
5.3.100.0070.04712.13
5.3.90.0060.04012.11
5.3.80.0100.03312.10
5.3.70.0070.04012.10
5.3.60.0100.03612.08
5.3.50.0070.03512.03
5.3.40.0110.04412.03
5.3.30.0080.03311.99
5.3.20.0100.03611.77
5.3.10.0080.03611.74
5.3.00.0050.03711.72
5.2.170.0090.0309.22
5.2.160.0050.0429.22
5.2.150.0050.0329.23
5.2.140.0060.0299.22
5.2.130.0040.0339.18
5.2.120.0070.0319.18
5.2.110.0050.0349.19
5.2.100.0060.0399.18
5.2.90.0070.0359.18
5.2.80.0060.0349.18
5.2.70.0040.0339.18
5.2.60.0070.0319.14
5.2.50.0090.0389.11
5.2.40.0060.0319.08
5.2.30.0040.0319.05
5.2.20.0070.0289.05
5.2.10.0040.0308.95
5.2.00.0030.0338.81
5.1.60.0060.0338.09
5.1.50.0070.0248.09
5.1.40.0010.0278.07
5.1.30.0030.0318.42
5.1.20.0020.0288.45
5.1.10.0040.0268.17
5.1.00.0040.0268.17
5.0.50.0010.0236.64
5.0.40.0020.0216.51
5.0.30.0060.0286.32
5.0.20.0050.0196.28
5.0.10.0030.0206.27
5.0.00.0030.0316.26
4.4.90.0050.0154.77
4.4.80.0010.0174.75
4.4.70.0050.0144.76
4.4.60.0020.0164.75
4.4.50.0050.0134.77
4.4.40.0020.0284.71
4.4.30.0030.0164.76
4.4.20.0020.0164.84
4.4.10.0030.0154.85
4.4.00.0030.0314.76
4.3.110.0050.0194.67
4.3.100.0000.0194.66
4.3.90.0020.0164.63
4.3.80.0020.0264.58
4.3.70.0020.0154.63
4.3.60.0020.0164.63
4.3.50.0040.0154.63
4.3.40.0010.0294.53
4.3.30.0010.0173.31
4.3.20.0030.0143.28
4.3.10.0030.0173.24
4.3.00.0030.01713.92

preferences:
141.88 ms | 1394 KiB | 7 Q