3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump( preg_split( '/\s+/', '"this is a string" cat dog "cow"'));
Output for 4.3.0 - 7.1.0
array(7) { [0]=> string(5) ""this" [1]=> string(2) "is" [2]=> string(1) "a" [3]=> string(7) "string"" [4]=> string(3) "cat" [5]=> string(3) "dog" [6]=> string(5) ""cow"" }