3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "Dit is een [test] string"; preg_match_all('/\[(.*?)\]/', $str, $matches); var_dump($matches);
based on 9M4Pd
Output for 5.3.22 - 7.3.0beta1
array(2) { [0]=> array(1) { [0]=> string(6) "[test]" } [1]=> array(1) { [0]=> string(4) "test" } }