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:
24.97 ms | 402 KiB | 5 Q