3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "%hey%_thereyou're_a%rockstar%\nyo%there%"; if (preg_match_all("/%([^%]*)%/", $str, $matches)) { print_r($matches[1]); }

preferences:
25.75 ms | 405 KiB | 5 Q