3v4l.org

run code in 500+ PHP versions simultaneously
<?php preg_match('/# Input\n(# (?:.*?))# Output/s', '# Input # data/raw/file1 # data/raw/file2 # Output # data/interim/file1 # data/interim/file2', $match); $matched = preg_split('/# /', $match[1], -1, PREG_SPLIT_NO_EMPTY); print_r($matched);

preferences:
84.95 ms | 1999 KiB | 5 Q