3v4l.org

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

preferences:
42.44 ms | 402 KiB | 5 Q