3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $postcode = '64 1s40 Tiu kka'; $r = preg_replace('/\s|[a-zA-z]/', '', $postcode); var_dump($r);
based on SrHGG
Output for 4.3.0 - 7.2.0
string(5) "64140"