3v4l.org

run code in 300+ PHP versions simultaneously
<?php class y{ public function dodo() { $ee = $this::_rrr; } } class x extends y{ const _rrr ='999'; } $w= new x; $w->dodo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vX4tI
function name:  (null)
number of ops:  6
compiled vars:  !0 = $w
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'x'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   15     3        INIT_METHOD_CALL                                         !0, 'dodo'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class y:
Function dodo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vX4tI
function name:  dodo
number of ops:  5
compiled vars:  !0 = $ee
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_THIS                                       ~1      
          1        FETCH_CLASS                                   0  $2      ~1
          2        FETCH_CLASS_CONSTANT                             ~3      $2, '_rrr'
          3        ASSIGN                                                   !0, ~3
    8     4      > RETURN                                                   null

End of function dodo

End of class y.

Class x:
Function dodo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vX4tI
function name:  dodo
number of ops:  5
compiled vars:  !0 = $ee
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_THIS                                       ~1      
          1        FETCH_CLASS                                   0  $2      ~1
          2        FETCH_CLASS_CONSTANT                             ~3      $2, '_rrr'
          3        ASSIGN                                                   !0, ~3
    8     4      > RETURN                                                   null

End of function dodo

End of class x.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.78 ms | 1394 KiB | 13 Q