3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace { class Bar extends PDO { public function baz() { parent::baz(); } } } namespace Foo { class PDO { public function baz() { echo __METHOD__; } } class FooBar extends Bar { } } namespace { $bar = new Foo\FooBar(); $bar->baz(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/84BDl
function name:  (null)
number of ops:  7
compiled vars:  !0 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   DECLARE_CLASS                                            'foo%5Cfoobar', 'foo%5Cbar'
   31     1        NEW                                              $1      'Foo%5CFooBar'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   32     4        INIT_METHOD_CALL                                         !0, 'baz'
          5        DO_FCALL                                      0          
   33     6      > RETURN                                                   1

Class Bar:
Function baz:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/84BDl
function name:  baz
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_STATIC_METHOD_CALL                                  'baz'
          1        DO_FCALL                                      0          
   10     2      > RETURN                                                   null

End of function baz

End of class Bar.

Class Foo\PDO:
Function baz:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/84BDl
function name:  baz
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   ECHO                                                     'Foo%5CPDO%3A%3Abaz'
   21     1      > RETURN                                                   null

End of function baz

End of class Foo\PDO.

Class Foo\FooBar: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.54 ms | 1393 KiB | 13 Q