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"; } } $test = new ((new foo())->getUserEntityClass()); $test->bar();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mUbfA
function name:  (null)
number of ops:  11
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   NEW                                              $1      'foo'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $1, 'getUserEntityClass'
          3        DO_FCALL                                      0  $3      
          4        FETCH_CLASS                                   0  $4      $3
          5        NEW                                              $5      $4
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $5
   20     8        INIT_METHOD_CALL                                         !0, 'bar'
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Class foo:
Function getuserentityclass:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mUbfA
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/mUbfA
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:
140.97 ms | 1393 KiB | 13 Q