3v4l.org

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

preferences:
138.81 ms | 407 KiB | 5 Q