3v4l.org

run code in 300+ PHP versions simultaneously
<?php $in = array(); $foo = 'f1'; $bar = 'b1'; if ( ! isset( $in[$foo][$bar] ) ) { $in[$foo][$bar] = array(); } print_r( $in ); $ob = new stdClass(); if ( ! isset( $ob->$foo->$bar ) ) { $ob->$foo->$bar = array(); } print_r( $ob );
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 23
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
Branch analysis from position: 10
filename:       /in/pUkqM
function name:  (null)
number of ops:  27
compiled vars:  !0 = $in, !1 = $foo, !2 = $bar, !3 = $ob
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 'f1'
    5     2        ASSIGN                                                   !2, 'b1'
    6     3        FETCH_DIM_IS                                     ~7      !0, !1
          4        ISSET_ISEMPTY_DIM_OBJ                         0  ~8      ~7, !2
          5        BOOL_NOT                                         ~9      ~8
          6      > JMPZ                                                     ~9, ->10
    7     7    >   FETCH_DIM_W                                      $10     !0, !1
          8        ASSIGN_DIM                                               $10, !2
          9        OP_DATA                                                  <array>
    9    10    >   INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
   11    13        NEW                                              $13     'stdClass'
         14        DO_FCALL                                      0          
         15        ASSIGN                                                   !3, $13
   12    16        FETCH_OBJ_IS                                     ~16     !3, !1
         17        ISSET_ISEMPTY_PROP_OBJ                           ~17     ~16, !2
         18        BOOL_NOT                                         ~18     ~17
         19      > JMPZ                                                     ~18, ->23
   13    20    >   FETCH_OBJ_W                                      $19     !3, !1
         21        ASSIGN_OBJ                                               $19, !2
         22        OP_DATA                                                  <array>
   15    23    >   INIT_FCALL                                               'print_r'
         24        SEND_VAR                                                 !3
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.87 ms | 1395 KiB | 15 Q