3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C1 { public function staticCall() { print __METHOD__.PHP_EOL; } public function dynamicCall() { print __METHOD__.PHP_EOL; } } class C2 extends C1 { public function dynamicCall() { print __METHOD__.PHP_EOL; parent::dynamicCall(); } } $c2 = new C2(); $c2->dynamicCall(); $c2->staticCall();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mc3vH
function name:  (null)
number of ops:  8
compiled vars:  !0 = $c2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   NEW                                              $1      'C2'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   26     3        INIT_METHOD_CALL                                         !0, 'dynamicCall'
          4        DO_FCALL                                      0          
   27     5        INIT_METHOD_CALL                                         !0, 'staticCall'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Class C1:
Function staticcall:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mc3vH
function name:  staticCall
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     'C1%3A%3AstaticCall%0A'
    8     1      > RETURN                                                   null

End of function staticcall

Function dynamiccall:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mc3vH
function name:  dynamicCall
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ECHO                                                     'C1%3A%3AdynamicCall%0A'
   13     1      > RETURN                                                   null

End of function dynamiccall

End of class C1.

Class C2:
Function dynamiccall:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mc3vH
function name:  dynamicCall
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   ECHO                                                     'C2%3A%3AdynamicCall%0A'
   21     1        INIT_STATIC_METHOD_CALL                                  'dynamicCall'
          2        DO_FCALL                                      0          
   22     3      > RETURN                                                   null

End of function dynamiccall

Function staticcall:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mc3vH
function name:  staticCall
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     'C1%3A%3AstaticCall%0A'
    8     1      > RETURN                                                   null

End of function staticcall

End of class C2.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.45 ms | 1395 KiB | 13 Q