3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $query = array( 'a' => 'b', 'c' => 'd' ); var_dump($query, array('a')); var_dump($query, array('a' => null));
based on c9ujv
Output for 4.3.0 - 7.2.0
array(2) { ["a"]=> string(1) "b" ["c"]=> string(1) "d" } array(1) { [0]=> string(1) "a" } array(2) { ["a"]=> string(1) "b" ["c"]=> string(1) "d" } array(1) { ["a"]=> NULL }