3v4l.org

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

Class Foo\Bar:
Function baz:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Um224
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 Foo\Bar.

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

End of function baz

End of class Foo\PDO.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.58 ms | 1393 KiB | 13 Q