3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SubClass extends BaseClass { } abstract class BaseClass { public function __call($name, $arguments) { return $this->$name(); } public function foo() { return 'foo'; } protected function bar() { return 'bar'; } private function foobar() { return 'foobar'; } } $test = new SubClass(); var_dump($test->foo()); var_dump($test->bar()); var_dump($test->foobar());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vvRVo
function name:  (null)
number of ops:  20
compiled vars:  !0 = $test
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ADD_INTERFACE                                            'subclass', 'baseclass'
  30     1        NEW                                              $1      :36
         2        DO_FCALL                                      0          
         3        QM_ASSIGN                                                !0
  31     4        INIT_FCALL                                               'var_dump'
         5        INIT_METHOD_CALL                                         !0, 'foo'
         6        DO_FCALL                                      0  $4      
         7        SEND_VAR                                                 $4
         8        DO_ICALL                                                 
  32     9        INIT_FCALL                                               'var_dump'
        10        INIT_METHOD_CALL                                         !0, 'bar'
        11        DO_FCALL                                      0  $6      
        12        SEND_VAR                                                 $6
        13        DO_ICALL                                                 
  33    14        INIT_FCALL                                               'var_dump'
        15        INIT_METHOD_CALL                                         !0, 'foobar'
        16        DO_FCALL                                      0  $8      
        17        SEND_VAR                                                 $8
        18        DO_ICALL                                                 
        19      > RETURN                                                   1

Class SubClass: [no user functions]
Class BaseClass:
Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vvRVo
function name:  __call
number of ops:  6
compiled vars:  !0 = $name, !1 = $arguments
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   9     0  E >   RECV                                             !0      
         1        RECV                                             !1      
  11     2        INIT_METHOD_CALL                                         !0
         3        DO_FCALL                                      0  $2      
         4      > RETURN                                                   $2
  12     5*     > RETURN                                                   null

End of function __call

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

End of function foo

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

End of function bar

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

End of function foobar

End of class BaseClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
23.08 ms | 421 KiB | 14 Q