3v4l.org

run code in 500+ PHP versions simultaneously
<?php abstract class First { public function showInfo() { echo $this->foo; } } class Second extends First { public $foo = 42; } $obj = new Second(); $obj->showInfo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/obOn0
function name:  (null)
number of ops:  6
compiled vars:  !0 = $obj
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   NEW                                                  $1      'Second'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   14     3        INIT_METHOD_CALL                                             !0, 'showInfo'
          4        DO_FCALL                                          0          
          5      > RETURN                                                       1

Class First:
Function showinfo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/obOn0
function name:  showInfo
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   FETCH_OBJ_R                                          ~0      'foo'
          1        ECHO                                                         ~0
    6     2      > RETURN                                                       null

End of function showinfo

End of class First.

Class Second:
Function showinfo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/obOn0
function name:  showInfo
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   FETCH_OBJ_R                                          ~0      'foo'
          1        ECHO                                                         ~0
    6     2      > RETURN                                                       null

End of function showinfo

End of class Second.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
153.44 ms | 1432 KiB | 13 Q