3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ['a' =>1,'b' => 2]; $arr2 = [['a' => 11,'b' => 22],['a' => 111,'b' => 222]]; echo count($arr); if(isset($arr[0]) && is_array($$arr[0])) echo 'arr is 2'; if(isset($arr2[0]) && is_array($$arr2[0])) echo 'arr2 is 2';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
2 jumps found. (Code = 46) Position 1 = 14, Position 2 = 18
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 20
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 18
Branch analysis from position: 12
Branch analysis from position: 10
filename:       /in/0MmPM
function name:  (null)
number of ops:  21
compiled vars:  !0 = $arr, !1 = $arr2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2        COUNT                                            ~4      !0
          3        ECHO                                                     ~4
    7     4        ISSET_ISEMPTY_DIM_OBJ                         0  ~5      !0, 0
          5      > JMPZ_EX                                          ~5      ~5, ->10
          6    >   FETCH_R                      local               ~6      !0
          7        FETCH_DIM_R                                      ~7      ~6, 0
          8        TYPE_CHECK                                  128  ~8      ~7
          9        BOOL                                             ~5      ~8
         10    > > JMPZ                                                     ~5, ->12
         11    >   ECHO                                                     'arr+is+2'
    8    12    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~9      !1, 0
         13      > JMPZ_EX                                          ~9      ~9, ->18
         14    >   FETCH_R                      local               ~10     !1
         15        FETCH_DIM_R                                      ~11     ~10, 0
         16        TYPE_CHECK                                  128  ~12     ~11
         17        BOOL                                             ~9      ~12
         18    > > JMPZ                                                     ~9, ->20
         19    >   ECHO                                                     'arr2+is+2'
         20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.31 ms | 1007 KiB | 13 Q