3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function bar() { return "foo"; } } function objekt() { return new Test(); } var_dump(objekt().bar());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4aCft
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'objekt'
          2        DO_FCALL                                      0  $0      
          3        INIT_FCALL_BY_NAME                                       'bar'
          4        DO_FCALL                                      0  $1      
          5        CONCAT                                           ~2      $0, $1
          6        SEND_VAL                                                 ~2
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Function objekt:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4aCft
function name:  objekt
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $0      'Test'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   $0
   11     3*     > RETURN                                                   null

End of function objekt

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

End of function bar

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.62 ms | 1397 KiB | 16 Q