3v4l.org

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

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.16 ms | 1398 KiB | 15 Q