3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $matches = array(); // $controller = $this->getRequest()->attributes->get('_controller'); $controller = "Acme\MyBundle\Controller\MyController::myAction"; preg_match('/(.*)\\MyBundle\\Controller\\(.*)Controller::(.*)Action/', $controller, $matches); print_r($matches);
Output for 4.3.11 - 7.1.0
Warning: preg_match(): Compilation failed: unmatched parentheses at offset 28 in /in/9NhGV on line 6 Array ( )
Output for 4.3.0 - 4.3.10
Warning: Compilation failed: unmatched parentheses at offset 28 in /in/9NhGV on line 6 Array ( )