3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a ='\r[download] 0.0% of 4.03MiB at Unknown speed ETA Unknown ETA\n'; print_r(preg_split("/^| of | at | ETA /",$a));
based on Kq5oj
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0beta1
Array ( [0] => [1] => \r[download] 0.0% [2] => 4.03MiB [3] => Unknown speed [4] => Unknown ETA\n )