3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Hello! 123 How Are You? 456"; preg_match_all('!\d\r!', $string, $matches); echo (int)implode('',$matches[0]);

preferences:
55.3 ms | 402 KiB | 5 Q