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

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