3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static $test; } class B extends A { } A::$test = 'x'; $a = new A(); $b = new B(); var_dump($b::test);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ohaFf
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ASSIGN_STATIC_PROP                                       'test', 'A'
          1        OP_DATA                                                  'x'
   15     2        NEW                                              $3      'A'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $3
   16     5        NEW                                              $6      'B'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $6
   17     8        INIT_FCALL                                               'var_dump'
          9        FETCH_CLASS                                   0  $9      !1
         10        FETCH_CLASS_CONSTANT                             ~10     $9, 'test'
         11        SEND_VAL                                                 ~10
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Class A: [no user functions]
Class B: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.21 ms | 1394 KiB | 15 Q