3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = range(4,17); print_r( array_filter($a, function($x){ return strpos( (string)$x, '5' ) === false; }) ); // $x = 5; // echo strpos((string)$x, '5') !== false;
based on jo5a0
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1
Array ( [0] => 4 [2] => 6 [3] => 7 [4] => 8 [5] => 9 [6] => 10 [7] => 11 [8] => 12 [9] => 13 [10] => 14 [12] => 16 [13] => 17 )