3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A; class B { const X = [ 'Y' => [ 'Z' => 'value' ] ]; } var_dump(defined('\A\B::X') && isset(\A\B::X['Y']['Z']));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/MtCLf
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_NS_FCALL_BY_NAME                                    'A%5Cvar_dump'
          1        INIT_NS_FCALL_BY_NAME                                    'A%5Cdefined'
          2        SEND_VAL_EX                                              '%5CA%5CB%3A%3AX'
          3        DO_FCALL                                      0  $0      
          4      > JMPZ_EX                                          ~1      $0, ->8
          5    >   FETCH_DIM_IS                                     ~2      <array>, 'Y'
          6        ISSET_ISEMPTY_DIM_OBJ                         0  ~3      ~2, 'Z'
          7        BOOL                                             ~1      ~3
          8    >   SEND_VAL_EX                                              ~1
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Class A\B: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.51 ms | 1398 KiB | 17 Q