3v4l.org

run code in 200+ PHP versions simultaneously
<?php $matches = new stdClass; preg_match("((foo)+)", "foo", $matches); var_dump($matches);
Output for 7.2.0 - 7.4.2
array(2) { [0]=> string(3) "foo" [1]=> string(3) "foo" }