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.0050.04612.52
5.4.310.0060.03912.52
5.4.300.0080.03512.52
5.4.290.0080.03612.51
5.4.280.0070.03712.41
5.4.270.0090.03612.41
5.4.260.0080.03612.41
5.4.250.0050.03812.41
5.4.240.0070.04212.41
5.4.230.0080.03912.40
5.4.220.0070.03512.40
5.4.210.0080.03412.40
5.4.200.0070.03612.40
5.4.190.0110.03612.40
5.4.180.0070.03412.39
5.4.170.0160.03712.41
5.4.160.0060.03612.40
5.4.150.0040.04012.40
5.4.140.0070.03812.09
5.4.130.0100.04012.07
5.4.120.0120.03512.04
5.4.110.0090.04212.03
5.4.100.0120.03612.04
5.4.90.0080.04012.03
5.4.80.0030.04012.03
5.4.70.0060.03512.02
5.4.60.0050.04212.02
5.4.50.0060.03812.02
5.4.40.0080.03712.01
5.4.30.0040.04012.01
5.4.20.0080.03612.01
5.4.10.0040.03712.01
5.4.00.0060.03611.50
5.3.290.0110.05012.80
5.3.280.0100.03912.71
5.3.270.0090.04412.72
5.3.260.0070.04912.72
5.3.250.0090.04112.71
5.3.240.0060.03912.71
5.3.230.0100.03412.71
5.3.220.0090.03612.68
5.3.210.0050.03912.68
5.3.200.0110.03112.68
5.3.190.0060.04412.68
5.3.180.0060.04012.67
5.3.170.0090.03512.67
5.3.160.0140.03712.67
5.3.150.0100.03512.67
5.3.140.0040.04012.66
5.3.130.0050.04012.66
5.3.120.0080.03812.66
5.3.110.0080.03812.66
5.3.100.0090.03712.13
5.3.90.0060.03812.11
5.3.80.0090.04012.10
5.3.70.0050.04212.10
5.3.60.0080.03712.08
5.3.50.0090.03512.03
5.3.40.0090.03512.03
5.3.30.0100.04011.99
5.3.20.0060.03811.77
5.3.10.0080.03311.73
5.3.00.0050.04511.72
5.2.170.0070.0369.22
5.2.160.0100.0269.23
5.2.150.0060.0339.23
5.2.140.0080.0429.22
5.2.130.0050.0309.18
5.2.120.0060.0279.18
5.2.110.0040.0309.19
5.2.100.0060.0359.18
5.2.90.0040.0299.18
5.2.80.0070.0289.18
5.2.70.0020.0339.18
5.2.60.0020.0329.13
5.2.50.0070.0279.11
5.2.40.0060.0289.08
5.2.30.0080.0279.05
5.2.20.0100.0259.04
5.2.10.0060.0278.95
5.2.00.0080.0268.81
5.1.60.0040.0268.09
5.1.50.0040.0258.09
5.1.40.0060.0228.08
5.1.30.0040.0278.43
5.1.20.0090.0218.45
5.1.10.0030.0268.16
5.1.00.0030.0268.17
5.0.50.0030.0216.64
5.0.40.0020.0246.52
5.0.30.0030.0316.32
5.0.20.0000.0226.29
5.0.10.0040.0216.27
5.0.00.0020.0316.26
4.4.90.0050.0134.78
4.4.80.0030.0154.75
4.4.70.0040.0144.76
4.4.60.0020.0164.76
4.4.50.0030.0154.77
4.4.40.0030.0264.71
4.4.30.0030.0154.76
4.4.20.0030.0154.85
4.4.10.0010.0174.85
4.4.00.0050.0244.76
4.3.110.0020.0164.66
4.3.100.0030.0154.66
4.3.90.0030.0144.64
4.3.80.0030.0244.58
4.3.70.0010.0164.63
4.3.60.0030.0144.63
4.3.50.0020.0194.63
4.3.40.0060.0234.54
4.3.30.0030.0183.31
4.3.20.0020.0193.29
4.3.10.0030.0153.25
4.3.00.0000.02013.92

preferences:
141 ms | 1394 KiB | 7 Q