3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $pattern = "/^(.*)$/m"; $string = "the quick brown fox jumped over the lazy dog"; preg_match_all($pattern, $string, $match); var_dump($match);
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
array(2) { [0]=> array(5) { [0]=> string(9) "the quick" [1]=> string(9) "brown fox" [2]=> string(11) "jumped over" [3]=> string(8) "the lazy" [4]=> string(3) "dog" } [1]=> array(5) { [0]=> string(9) "the quick" [1]=> string(9) "brown fox" [2]=> string(11) "jumped over" [3]=> string(8) "the lazy" [4]=> string(3) "dog" } }
Output for hhvm-3.10.0

Process exited with code 153.