3v4l.org

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

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

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

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

End of function %00c%2Fin%2FAY5jS%3A8%241

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

End of function b

End of class a.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.39 ms | 1395 KiB | 13 Q