3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public function getUserEntityClass() { return 'apa'; } } class apa { public function bar() { echo "is here"; } } (new ((new foo())->getUserEntityClass()))->bar();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/n2ugi
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   NEW                                              $0      'foo'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'getUserEntityClass'
          3        DO_FCALL                                      0  $2      
          4        FETCH_CLASS                                   0  $3      $2
          5        NEW                                              $4      $3
          6        DO_FCALL                                      0          
          7        INIT_METHOD_CALL                                         $4, 'bar'
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

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

End of function getuserentityclass

End of class foo.

Class apa:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/n2ugi
function name:  bar
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   ECHO                                                     'is+here'
   16     1      > RETURN                                                   null

End of function bar

End of class apa.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.92 ms | 1393 KiB | 13 Q