3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_split('/([ -])/', 'test', -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY));

preferences:
33.21 ms | 404 KiB | 5 Q