3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'one, two & three and four-five 123-456'; var_export( preg_split('/\d-\d(*SKIP)(*FAIL)|and|[\s,&-]+/i', $string, 0, PREG_SPLIT_NO_EMPTY) );

preferences:
81.65 ms | 1118 KiB | 5 Q