3v4l.org

run code in 300+ PHP versions simultaneously
<?php $id = '1'; $parentId = ''; $a = array(); $a[$id || $parentId] = 'fo'; var_dump($a);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/2g0Cj
function name:  (null)
number of ops:  11
compiled vars:  !0 = $id, !1 = $parentId, !2 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '1'
    3     1        ASSIGN                                                   !1, ''
    5     2        ASSIGN                                                   !2, <array>
    7     3      > JMPNZ_EX                                         ~6      !0, ->5
          4    >   BOOL                                             ~6      !1
          5    >   ASSIGN_DIM                                               !2, ~6
          6        OP_DATA                                                  'fo'
    9     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.68 ms | 1385 KiB | 15 Q