3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = <<<CONTENT bab @tag CONTENT; $matches = array(); var_dump(preg_match('/^a/', $content, $matches, 0, 1) === 1); var_dump(preg_match('/^(\A|\n)\w*@/', $content, $matches, 0, 1) === 1);

preferences:
34.3 ms | 402 KiB | 5 Q