3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $bar = null; var_dump(array_values(array('foo', 'bar', '', null, 0, $bar)));
Output for 4.3.0 - 7.1.0
array(6) { [0]=> string(3) "foo" [1]=> string(3) "bar" [2]=> string(0) "" [3]=> NULL [4]=> int(0) [5]=> NULL }