3v4l.org

run code in 500+ PHP versions simultaneously
<?php $my_string = " >>12345 Hello this is an example string. "; preg_match("/(>>\d+)/", $my_string, $matches); echo $matches[1];

preferences:
92.3 ms | 1114 KiB | 5 Q