3v4l.org

run code in 300+ PHP versions simultaneously
<?php $controller = 'some_name'; $$controller = function() { echo "hi"; }; function something() { // call some_name() here }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aNsaK
function name:  (null)
number of ops:  5
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%2FaNsaK%3A5%240'
          2        FETCH_W                      local               $2      !0
          3        ASSIGN                                                   $2, ~3
   13     4      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FaNsaK%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aNsaK
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%2FaNsaK%3A5%240

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

End of function something

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.41 ms | 1393 KiB | 13 Q