3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { function b(){ $fn = function(){ echo __CLASS__,' ', __METHOD__, ' ', __FUNCTION__, PHP_EOL; }; $fn(); function c(){ echo __CLASS__,' ', __METHOD__, ' ', __FUNCTION__, PHP_EOL; } } } (new a)->b(); c();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OEm8O
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $0      'a'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'b'
          3        DO_FCALL                                      0          
   18     4        INIT_FCALL_BY_NAME                                       'c'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

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

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

Function %00c%2Fin%2FOEm8O%3A11%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OEm8O
function name:  c
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ECHO                                                     ''
          1        ECHO                                                     '+'
          2        ECHO                                                     'c'
          3        ECHO                                                     '+'
          4        ECHO                                                     'c'
          5        ECHO                                                     '%0A'
   13     6      > RETURN                                                   null

End of function %00c%2Fin%2FOEm8O%3A11%241

Class a:
Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OEm8O
function name:  b
number of ops:  6
compiled vars:  !0 = $fn
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FOEm8O%3A5%240'
          1        ASSIGN                                                   !0, ~1
    9     2        INIT_DYNAMIC_CALL                                        !0
          3        DO_FCALL                                      0          
   11     4        DECLARE_FUNCTION                                         'c'
   14     5      > RETURN                                                   null

End of function b

End of class a.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160 ms | 1395 KiB | 13 Q