3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<STRING This, actually, is (a) nice' old'er string, as Raphaƫl said, "divided and conquered"! STRING; var_export( preg_match_all("~[\pL\pM]+[\pL\pM'-]*(?<!['-])~u", $string, $matches) ? $matches[0] : [] );

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
166.52 ms | 2048 KiB | 12 Q