3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar() { echo 'here'; } } class Bel { public function bar() { echo 'there'; } } class_alias('Foo', 'Baz'); $b = new Baz; $b->bar(); class_alias('Bel', 'Baz'); $c = new Bel; $c->bar();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iD7YG
function name:  (null)
number of ops:  19
compiled vars:  !0 = $b, !1 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'class_alias'
          1        SEND_VAL                                                 'Foo'
          2        SEND_VAL                                                 'Baz'
          3        DO_ICALL                                                 
   16     4        NEW                                              $3      'Baz'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $3
   17     7        INIT_METHOD_CALL                                         !0, 'bar'
          8        DO_FCALL                                      0          
   18     9        INIT_FCALL                                               'class_alias'
         10        SEND_VAL                                                 'Bel'
         11        SEND_VAL                                                 'Baz'
         12        DO_ICALL                                                 
   19    13        NEW                                              $8      'Bel'
         14        DO_FCALL                                      0          
         15        ASSIGN                                                   !1, $8
   20    16        INIT_METHOD_CALL                                         !1, 'bar'
         17        DO_FCALL                                      0          
         18      > RETURN                                                   1

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

End of function bar

End of class Foo.

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

End of function bar

End of class Bel.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.35 ms | 1401 KiB | 15 Q