3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/{youtube}(.*){\/youtube}/mis'; $str = 'Life is good {youtube}NgBZrRCPCH8{/youtube} Fun is great! {youtube}joRCPCH8{/youtube} Earth is round and roll\n {youtube}pwnkfH8{/youtube}'; preg_match_all($re, $str, $matches); print_r($matches);

preferences:
51.44 ms | 402 KiB | 5 Q