3v4l.org

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

preferences:
60.61 ms | 1118 KiB | 5 Q