3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match('/\[{2}(.+?)\]{2}/', 'sometext[[GridRef:St12341234]]moretext', $match); print_r($match);

preferences:
29.28 ms | 405 KiB | 5 Q