3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $out = <<<END "CN=Administrator,CN=Users,DC=server,DC=local" "CN=Guest,CN=Users,DC=server,DC=local" "CN=krbtgt,CN=Users,DC=server,DC=local" END; $matches = array(); preg_match_all('/CN=([^,"]+)/', $out, $matches); print_r($matches[1]);
Output for 4.3.0 - 7.2.0
Array ( [0] => Administrator [1] => Users [2] => Guest [3] => Users [4] => krbtgt [5] => Users )