3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace TestApp\controllers { class Home { function index() { echo 'index'; } } } namespace main { use TestApp\controllers\Home; $className = 'Home'; $action = 'index'; $obj = new $className; call_user_func([$obj, $action]); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a35JA
function name:  (null)
number of ops:  12
compiled vars:  !0 = $className, !1 = $action, !2 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ASSIGN                                                   !0, 'Home'
   15     1        ASSIGN                                                   !1, 'index'
   17     2        FETCH_CLASS                                   0  $5      !0
          3        NEW                                              $6      $5
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !2, $6
   19     6        INIT_NS_FCALL_BY_NAME                                    'main%5Ccall_user_func'
          7        INIT_ARRAY                                       ~9      !2
          8        ADD_ARRAY_ELEMENT                                ~9      !1
          9        SEND_VAL_EX                                              ~9
         10        DO_FCALL                                      0          
   20    11      > RETURN                                                   1

Class TestApp\controllers\Home:
Function index:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a35JA
function name:  index
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     'index'
    7     1      > RETURN                                                   null

End of function index

End of class TestApp\controllers\Home.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.63 ms | 1399 KiB | 15 Q