3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match_all('/(?:&lt;|&gt;|&amp;)/i', '&lt;tomato&gt; has this &amp; that powers', $matches, PREG_OFFSET_CAPTURE); var_dump($matches);

preferences:
57.57 ms | 402 KiB | 5 Q