3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_text = 'The quick brown [fox].'; preg_match('#\[(.*?)\]#', $my_text, $match); print $match[1];

preferences:
37.1 ms | 402 KiB | 5 Q