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 - 7.1.0
Array ( [0] => Hello [1] => [2] => how [3] => [4] => are [5] => [6] => you [7] => <br> [8] => Foo [9] => [10] => bar [11] => [12] => hello )