3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array(2,12,51,0,123,0,31,0,31); array_filter($arr); print_r($arr);
Output for 5.6.0 - 7.3.0beta1
Array ( [0] => 2 [1] => 12 [2] => 51 [3] => 0 [4] => 123 [5] => 0 [6] => 31 [7] => 0 [8] => 31 )