3v4l.org

run code in 300+ PHP versions simultaneously
<?php class StaticClass{ public static $array = array( 'head'=>'Head' ); public static function load($section){ return self::$array; } } echo StaticClass::load('section')['head'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6NZoK
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_STATIC_METHOD_CALL                                  'StaticClass', 'load'
          1        SEND_VAL                                                 'section'
          2        DO_FCALL                                      0  $0      
          3        FETCH_DIM_R                                      ~1      $0, 'head'
          4        ECHO                                                     ~1
          5      > RETURN                                                   1

Class StaticClass:
Function load:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6NZoK
function name:  load
number of ops:  4
compiled vars:  !0 = $section
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   10     1        FETCH_STATIC_PROP_R          unknown             ~1      'array'
          2      > RETURN                                                   ~1
   11     3*     > RETURN                                                   null

End of function load

End of class StaticClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.75 ms | 1397 KiB | 13 Q