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

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