3v4l.org

run code in 300+ PHP versions simultaneously
<?php $invoice_id ="May-Ann Jane-28188-1600086909"; $exploded = preg_split('/-(?=[0-9])/', $invoice_id,3 ); print_r($exploded);

preferences:
101.83 ms | 405 KiB | 5 Q