3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait HasStaticPaths { public static $paths = []; } class FirstStaticPaths { use HasStaticPaths; } class SecondStaticPaths { use HasStaticPaths; } abstract class HasPaths { public static $paths = []; } class ThirdStaticPaths extends HasPaths {} class FourthStaticPaths extends HasPaths {} FirstStaticPaths::$paths[] = '/var'; SecondStaticPaths::$paths[] = '/usr'; ThirdStaticPaths::$paths[] = '/var'; FourthStaticPaths::$paths[] = '/usr'; var_dump(FirstStaticPaths::$paths); var_dump(SecondStaticPaths::$paths); var_dump(ThirdStaticPaths::$paths); var_dump(FourthStaticPaths::$paths);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D9KU0
function name:  (null)
number of ops:  31
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                            'firststaticpaths'
   13     1        DECLARE_CLASS                                            'secondstaticpaths'
   27     2        FETCH_STATIC_PROP_W          global              $0      'paths'
          3        ASSIGN_DIM                                               $0
          4        OP_DATA                                                  '%2Fvar'
   28     5        FETCH_STATIC_PROP_W          unknown             $2      'paths'
          6        ASSIGN_DIM                                               $2
          7        OP_DATA                                                  '%2Fusr'
   29     8        FETCH_STATIC_PROP_W          unknown             $4      'paths'
          9        ASSIGN_DIM                                               $4
         10        OP_DATA                                                  '%2Fvar'
   30    11        FETCH_STATIC_PROP_W          unknown             $6      'paths'
         12        ASSIGN_DIM                                               $6
         13        OP_DATA                                                  '%2Fusr'
   32    14        INIT_FCALL                                               'var_dump'
         15        FETCH_STATIC_PROP_R          unknown             ~8      'paths'
         16        SEND_VAL                                                 ~8
         17        DO_ICALL                                                 
   33    18        INIT_FCALL                                               'var_dump'
         19        FETCH_STATIC_PROP_R          unknown             ~10     'paths'
         20        SEND_VAL                                                 ~10
         21        DO_ICALL                                                 
   34    22        INIT_FCALL                                               'var_dump'
         23        FETCH_STATIC_PROP_R          unknown             ~12     'paths'
         24        SEND_VAL                                                 ~12
         25        DO_ICALL                                                 
   35    26        INIT_FCALL                                               'var_dump'
         27        FETCH_STATIC_PROP_R          unknown             ~14     'paths'
         28        SEND_VAL                                                 ~14
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Class HasStaticPaths: [no user functions]
Class FirstStaticPaths: [no user functions]
Class SecondStaticPaths: [no user functions]
Class HasPaths: [no user functions]
Class ThirdStaticPaths: [no user functions]
Class FourthStaticPaths: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.11 ms | 999 KiB | 14 Q