3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Pare { const DEF = __CLASS__; } class Foo extends Pare { public static function bar($i = parent::DEF) { return $i; } } class Ex extends Foo { const DEF = __CLASS__; } var_dump(Ex::bar());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Fk2ae
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_STATIC_METHOD_CALL                                  'Ex', 'bar'
          2        DO_FCALL                                      0  $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
          5      > RETURN                                                   1

Class Pare: [no user functions]
Class Foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Fk2ae
function name:  bar
number of ops:  3
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV_INIT                                        !0      <const ast>
   11     1      > RETURN                                                   !0
   12     2*     > RETURN                                                   null

End of function bar

End of class Foo.

Class Ex:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Fk2ae
function name:  bar
number of ops:  3
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV_INIT                                        !0      <const ast>
   11     1      > RETURN                                                   !0
   12     2*     > RETURN                                                   null

End of function bar

End of class Ex.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.06 ms | 1395 KiB | 15 Q