3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text="one #two three #four #five"; $parts = explode(' ', $text); $parts = array_filter( function($word) {return strpos("#",$word)!==1;}, $array ); print_r($parts);

preferences:
74 ms | 402 KiB | 5 Q