3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar() { } } class FooBar extends Foo { public function bar() { call_user_func_array('parent::bar()', func_get_args()); } } $foobar = new FooBar; $foobar->bar();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/upLSi
function name:  (null)
number of ops:  6
compiled vars:  !0 = $foobar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $1      'FooBar'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   19     3        INIT_METHOD_CALL                                         !0, 'bar'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

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

End of function bar

End of class Foo.

Class FooBar:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/upLSi
function name:  bar
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_USER_CALL                                0          'call_user_func_array', 'parent%3A%3Abar%28%29'
          1        FUNC_GET_ARGS                                    ~0      
          2        SEND_ARRAY                                               ~0
          3        CHECK_UNDEF_ARGS                                         
          4        DO_FCALL                                      0          
   16     5      > RETURN                                                   null

End of function bar

End of class FooBar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.2 ms | 1393 KiB | 13 Q