3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern= '# \w*?[aeiou]{2}\w*? #'; $string = "There’s a lion loose in the Maister park"; $matches= array(); preg_match_all($pattern, $string, $matches); foreach($matches as $value) print($value)
Output for 7.0.0 - 7.0.25, 7.1.0 - 7.1.11
Parse error: syntax error, unexpected end of file in /in/vhJTd on line 11
Process exited with code 255.

preferences:
170.57 ms | 1395 KiB | 45 Q