3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Hello there ##NAME##, you have ##ORDERSNUM## orders pending"; preg_match_all('/##([^#]+)##/', $string, $matches); print_r($matches);

preferences:
32.11 ms | 405 KiB | 5 Q