3v4l.org - online PHP & HHVM shell, execute code in 100+ different versions!

<?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.3, php7@20140507 - 20141101, hhvm-3.0.1 - 3.4.0
Array ( [Question.id] => 1 [Question.type] => foo )