3v4l.org

run code in 300+ PHP versions simultaneously
<?php $vendorsList= array(); $key ="Star war"; $vendorsList[$key]="1"; $key1 ="Star war"; if(true === array_key_exists($key1,$vendorsList)){ $key1 = $key1." "; } $vendorsList[$key1]="2"; print_r($vendorsList);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/jBg7S
function name:  (null)
number of ops:  16
compiled vars:  !0 = $vendorsList, !1 = $key, !2 = $key1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 'Star+war'
    4     2        ASSIGN_DIM                                               !0, !1
          3        OP_DATA                                                  '1'
    5     4        ASSIGN                                                   !2, 'Star+war'
    6     5        ARRAY_KEY_EXISTS                                 ~7      !2, !0
          6        TYPE_CHECK                                    8          ~7
          7      > JMPZ                                                     ~8, ->10
    7     8    >   CONCAT                                           ~9      !2, '+'
          9        ASSIGN                                                   !2, ~9
    9    10    >   ASSIGN_DIM                                               !0, !2
         11        OP_DATA                                                  '2'
   10    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.44 ms | 1399 KiB | 15 Q