3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); $foo = array( 'foo' => 'oof' ); if (!isset($foo['sub']['arrays']['are']['pretty']['cool'])) { $foo['sub']['arrays']['are']['pretty']['cool'] = 0; } print_r($foo); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 17
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/hPV7Q
function name:  (null)
number of ops:  21
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    4     3        ASSIGN                                                   !0, <array>
    8     4        FETCH_DIM_IS                                     ~3      !0, 'sub'
          5        FETCH_DIM_IS                                     ~4      ~3, 'arrays'
          6        FETCH_DIM_IS                                     ~5      ~4, 'are'
          7        FETCH_DIM_IS                                     ~6      ~5, 'pretty'
          8        ISSET_ISEMPTY_DIM_OBJ                         0  ~7      ~6, 'cool'
          9        BOOL_NOT                                         ~8      ~7
         10      > JMPZ                                                     ~8, ->17
    9    11    >   FETCH_DIM_W                                      $9      !0, 'sub'
         12        FETCH_DIM_W                                      $10     $9, 'arrays'
         13        FETCH_DIM_W                                      $11     $10, 'are'
         14        FETCH_DIM_W                                      $12     $11, 'pretty'
         15        ASSIGN_DIM                                               $12, 'cool'
         16        OP_DATA                                                  0
   12    17    >   INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                                 
   13    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.74 ms | 1395 KiB | 17 Q