3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r( preg_split( '/\s+|(<br>)/', 'Hello how are you<br>Foo bar hello', -1, PREG_SPLIT_DELIM_CAPTURE));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => Hello [1] => how [2] => are [3] => you [4] => <br> [5] => Foo [6] => bar [7] => hello )