3v4l.org

run code in 300+ PHP versions simultaneously
<?php $controller = 'some_name'; $$controller = function() { echo "hi"; }; function something() { // call some_name() here call_user_func('some_name'); } something();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tgoQp
function name:  (null)
number of ops:  7
compiled vars:  !0 = $controller
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'some_name'
    5     1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FtgoQp%3A5%240'
          2        FETCH_W                      local               $2      !0
          3        ASSIGN                                                   $2, ~3
   16     4        INIT_FCALL                                               'something'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FtgoQp%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tgoQp
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     'hi'
    8     1      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FtgoQp%3A5%240

Function something:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tgoQp
function name:  something
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_USER_CALL                                0          'call_user_func', 'some_name'
          1        DO_FCALL                                      0          
   14     2      > RETURN                                                   null

End of function something

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.59 ms | 1397 KiB | 14 Q