3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'family apotheke 14.05'; preg_match_all('!\d+\.*\d*!', $str ,$match); echo $number = implode(' ', $match[0]); echo "<br />".$filter_str = trim(str_replace($number, '', $str));

preferences:
30.62 ms | 408 KiB | 5 Q