3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $gls_report_groups = array(-1, 1, 0, false, true, null, 'foo', 'id'); $gls_report_groups = array_filter($gls_report_groups); var_dump($gls_report_groups);
based on fXtEL
Output for 4.3.0 - 7.2.6
array(5) { [0]=> int(-1) [1]=> int(1) [4]=> bool(true) [6]=> string(3) "foo" [7]=> string(2) "id" }