3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Super { public function __call($name, $arguments) { echo __CLASS__, ' calling ', $name, "\n"; $this->actualMethod(); } } class Sub extends Super { public function actualMethod() { echo "Inside the actual method\n"; } } $sub = new Sub; $sub->actualMethod(); $sub->alias();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D26ib
function name:  (null)
number of ops:  8
compiled vars:  !0 = $sub
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $1      'Sub'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   19     3        INIT_METHOD_CALL                                         !0, 'actualMethod'
          4        DO_FCALL                                      0          
   20     5        INIT_METHOD_CALL                                         !0, 'alias'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Class Super:
Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D26ib
function name:  __call
number of ops:  9
compiled vars:  !0 = $name, !1 = $arguments
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        ECHO                                                     'Super'
          3        ECHO                                                     '+calling+'
          4        ECHO                                                     !0
          5        ECHO                                                     '%0A'
    7     6        INIT_METHOD_CALL                                         'actualMethod'
          7        DO_FCALL                                      0          
    8     8      > RETURN                                                   null

End of function __call

End of class Super.

Class Sub:
Function actualmethod:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D26ib
function name:  actualMethod
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ECHO                                                     'Inside+the+actual+method%0A'
   15     1      > RETURN                                                   null

End of function actualmethod

Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D26ib
function name:  __call
number of ops:  9
compiled vars:  !0 = $name, !1 = $arguments
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        ECHO                                                     'Super'
          3        ECHO                                                     '+calling+'
          4        ECHO                                                     !0
          5        ECHO                                                     '%0A'
    7     6        INIT_METHOD_CALL                                         'actualMethod'
          7        DO_FCALL                                      0          
    8     8      > RETURN                                                   null

End of function __call

End of class Sub.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.66 ms | 1395 KiB | 13 Q