3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $searchdata = array("id" => 1, "name" => "", "type" => "foo"); $conditions = array('Question.id' => $searchdata['id'], 'Question.name' => $searchdata['name'], "Question.type" => $searchdata['type']); $conditions = array_filter($conditions); print_r($conditions);
Output for 4.3.0 - 5.6.21, hhvm-3.9.1, hhvm-3.11.0 - 3.12.0, 7.0.0 - 7.0.6
Array ( [Question.id] => 1 [Question.type] => foo )
Output for hhvm-3.10.0

Process exited with code 153.