3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "<li>Want this</li>DON'T WANT THIS<li>Want this</li>DON'T WANT THIS<li>Want this</li>"; preg_match_all('/<li>(.*?)<\/li>/', $str, $out); echo '<pre>'; print_r($out);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
165.8 ms | 2804 KiB | 12 Q