3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump( array_filter( array( 45, '15', "'; -- \DROP TABLE alerts;", 1, 2, '3', 4 ) ) );
Output for 5.6.30, hhvm-3.15.4 - 3.22.0, 7.0.0 - 7.2.9
array(7) { [0]=> int(45) [1]=> string(2) "15" [2]=> string(25) "'; -- \DROP TABLE alerts;" [3]=> int(1) [4]=> int(2) [5]=> string(1) "3" [6]=> int(4) }