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) );

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
159.24 ms | 1732 KiB | 10 Q