3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches = array(); // $controller = $this->getRequest()->attributes->get('_controller'); $controller = "Acme\MyBundle\Controller\MyController::myAction"; preg_match('/(.*)\\\Bundle\\\(.*)\\\Controller\\\(.*)Controller::(.*)Action/', $controller, $matches); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nfiIe
function name:  (null)
number of ops:  11
compiled vars:  !0 = $matches, !1 = $controller
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, 'Acme%5CMyBundle%5CController%5CMyController%3A%3AmyAction'
    6     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAL                                                 '%2F%28.%2A%29%5C%5CBundle%5C%5C%28.%2A%29%5C%5CController%5C%5C%28.%2A%29Controller%3A%3A%28.%2A%29Action%2F'
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !0
          6        DO_ICALL                                                 
    8     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.94 ms | 1385 KiB | 17 Q