3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { protected static $v; } class b extends a { public function f() { self::$v=1; } } $b = new b(); $b->f();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Dt1Jv
function name:  (null)
number of ops:  6
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'b'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   16     3        INIT_METHOD_CALL                                         !0, 'f'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class a: [no user functions]
Class b:
Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Dt1Jv
function name:  f
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN_STATIC_PROP                                       'v'
          1        OP_DATA                                                  1
   11     2      > RETURN                                                   null

End of function f

End of class b.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.21 ms | 1397 KiB | 13 Q