3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = '1 foo 2 ba_r 3 foo bar 4 fo-o'; preg_match_all( '/(\d+)\s+(.*)/m', $input, $matches, PREG_SET_ORDER); print_r( $matches);

preferences:
49.42 ms | 402 KiB | 5 Q