3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Objekt { } class Einstellung extends Objekt { public function drucken(){ print "hello"; } } class tester { public function test($e){ $e->drucken(); } } $e = new Einstellung(); $t = new Tester(); $t->test($e);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SThbZ
function name:  (null)
number of ops:  10
compiled vars:  !0 = $e, !1 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   NEW                                              $2      'Einstellung'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   21     3        NEW                                              $5      'Tester'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
   22     6        INIT_METHOD_CALL                                         !1, 'test'
          7        SEND_VAR_EX                                              !0
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Class Objekt: [no user functions]
Class Einstellung:
Function drucken:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SThbZ
function name:  drucken
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                     'hello'
   10     1      > RETURN                                                   null

End of function drucken

End of class Einstellung.

Class tester:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SThbZ
function name:  test
number of ops:  4
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
   16     1        INIT_METHOD_CALL                                         !0, 'drucken'
          2        DO_FCALL                                      0          
   17     3      > RETURN                                                   null

End of function test

End of class tester.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.78 ms | 1394 KiB | 13 Q