3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { function b(){ 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/n43UQ
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $0      'a'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'b'
          3        DO_FCALL                                      0          
   12     4        INIT_FCALL_BY_NAME                                       'c'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

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

End of function %00c%2Fin%2Fn43UQ%3A5%240

Class a:
Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/n43UQ
function name:  b
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_FUNCTION                                         'c'
    8     1      > RETURN                                                   null

End of function b

End of class a.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.36 ms | 1393 KiB | 13 Q