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]); }

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
153.79 ms | 1873 KiB | 10 Q