3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $sql = array("inUserID" => "lemon", "inCustID" => "orange", "btAll" => "banana", "btPermPref" => "apple", "inDisplay"=>"toast"); function pram_alter($array, $key) { foreach ($array as $value){ echo "$value = '$value'"; } } //$temp=array(); $temp=array(pram_alter($sql, 'pram_alter')); echo print_r($temp); ?>
based on 3TSoT
Output for 4.3.0 - 7.1.0
lemon = 'lemon'orange = 'orange'banana = 'banana'apple = 'apple'toast = 'toast'Array ( [0] => ) 1