3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $searchdata = array("id" => 1, "name" => "", "type" => "foo"); foreach($searchdata AS $key => $value) $conditions['Question.' . $key] = $value; $conditions = array_filter($conditions); print_r($conditions);
Output for 4.3.0 - 7.1.0
Array ( [Question.id] => 1 [Question.type] => foo )