3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public function vw($xc) { return $xc; } } class b extends a { public function wv() { echo parent::vw("I'm a missing parameter") . 'from b via wv'; } } $d = new a; echo $d->vw('this is a').PHP_EOL; $c = new b; echo $c->vw('this is a from b via a').PHP_EOL; $c->wv();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0MkQI
function name:  (null)
number of ops:  19
compiled vars:  !0 = $d, !1 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $2      'a'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   16     3        INIT_METHOD_CALL                                         !0, 'vw'
          4        SEND_VAL_EX                                              'this+is+a'
          5        DO_FCALL                                      0  $5      
          6        CONCAT                                           ~6      $5, '%0A'
          7        ECHO                                                     ~6
   17     8        NEW                                              $7      'b'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !1, $7
   18    11        INIT_METHOD_CALL                                         !1, 'vw'
         12        SEND_VAL_EX                                              'this+is+a+from+b+via+a'
         13        DO_FCALL                                      0  $10     
         14        CONCAT                                           ~11     $10, '%0A'
         15        ECHO                                                     ~11
   19    16        INIT_METHOD_CALL                                         !1, 'wv'
         17        DO_FCALL                                      0          
         18      > RETURN                                                   1

Class a:
Function vw:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0MkQI
function name:  vw
number of ops:  3
compiled vars:  !0 = $xc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1      > RETURN                                                   !0
    6     2*     > RETURN                                                   null

End of function vw

End of class a.

Class b:
Function wv:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0MkQI
function name:  wv
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_STATIC_METHOD_CALL                                  'vw'
          1        SEND_VAL_EX                                              'I%27m+a+missing+parameter'
          2        DO_FCALL                                      0  $0      
          3        CONCAT                                           ~1      $0, 'from+b+via+wv'
          4        ECHO                                                     ~1
   12     5      > RETURN                                                   null

End of function wv

Function vw:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0MkQI
function name:  vw
number of ops:  3
compiled vars:  !0 = $xc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1      > RETURN                                                   !0
    6     2*     > RETURN                                                   null

End of function vw

End of class b.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.27 ms | 1410 KiB | 13 Q