3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php preg_match_all('!\d+!', "lafkj 12 ksdhf -12 3 6 s 6", $matches); $string_of_numbers = implode(' ', $matches[0]); echo $string_of_numbers;
Output for 5.6.30, hhvm-3.15.4 - 3.22.0, 7.0.0 - 7.3.0rc3
12 12 3 6 6