3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function myfunction($hellothere){ echo "what"; } preg_match("/(?P<hello>abc)/", "abc", $matches); var_dump($matches);
based on ROpSp
Output for 4.3.3 - 7.1.0
array(3) { [0]=> string(3) "abc" ["hello"]=> string(3) "abc" [1]=> string(3) "abc" }
Output for 4.3.0 - 4.3.2
array(2) { [0]=> string(3) "abc" [1]=> string(3) "abc" }