3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "['key1', 'key2']"; preg_match_all("/'([^'\]]+)'+/", $str, $matches); var_export($matches[1]);
Output for 4.3.0 - 7.1.0
array ( 0 => 'key1', 1 => 'key2', )