3v4l.org

run code in 300+ PHP versions simultaneously
<?php class base { public function validate(){ echo 'in base'. PHP_EOL; } } class second extends base { } class third extends second { public function validate(){ echo 'in third'. PHP_EOL; } } $s = new second; //echo 'result is '.$s->validate();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ICPmh
function name:  (null)
number of ops:  4
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'second'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   16     3      > RETURN                                                   1

Class base:
Function validate:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ICPmh
function name:  validate
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     'in+base%0A'
    5     1      > RETURN                                                   null

End of function validate

End of class base.

Class second:
Function validate:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ICPmh
function name:  validate
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     'in+base%0A'
    5     1      > RETURN                                                   null

End of function validate

End of class second.

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

End of function validate

End of class third.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.83 ms | 1385 KiB | 13 Q