3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $body = "something use Modules\Cms\Classes\Content; use Modules\Cms\Classes\Theme; use Modules\System\Classes\ApplicationException; use Modules\Cms\Classes\Router; class ... "; $namespaces = array(); preg_match_all('/(use\s[a-z0-9_\\]+;)/m', $body, $namespaces); print_r($namespaces);
Output for 4.3.11 - 7.2.0
Warning: preg_match_all(): Compilation failed: missing terminating ] for character class at offset 19 in /in/kYlRP on line 16 Array ( )
Output for 4.3.0 - 4.3.10
Warning: Compilation failed: missing terminating ] for character class at offset 19 in /in/kYlRP on line 16 Array ( )