3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = "Name|name Last|f_name "; print_r(preg_split('/\R/', $string, -1, PREG_SPLIT_NO_EMPTY));

preferences:
45.27 ms | 1436 KiB | 5 Q