3v4l.org

run code in 300+ PHP versions simultaneously
<?php $articlecontent = "qwfasdasdqw\n:yeaaa323132[featuredimage]:asd\nWHAAAAT"; preg_match('/\[featuredimage\]:(.*)/', $articlecontent, $match); var_dump($match); if($match) { echo $match[1]; } else { echo "NO MATCH"; }

preferences:
49.26 ms | 402 KiB | 5 Q