3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern='<\b(?:apple|orange|pear|lemon|Goji berry)\b>i'; $phrase="I will buy an apple to do an applepie!"; preg_match_all($pattern,$phrase,$match); print_r($match);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
175.24 ms | 3327 KiB | 10 Q