3v4l.org

run code in 300+ PHP versions simultaneously
<?php $attributeSetCollection = ['attribute_set_id' => 123]; $attributeSetId = $attributeSetCollection['attribute_set_id']; //$attributeSetId = (int) implode($attributeSetCollection); echo $attributeSetId;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8Yq6j
function name:  (null)
number of ops:  5
compiled vars:  !0 = $attributeSetCollection, !1 = $attributeSetId
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        FETCH_DIM_R                                      ~3      !0, 'attribute_set_id'
          2        ASSIGN                                                   !1, ~3
    8     3        ECHO                                                     !1
    9     4      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
197.95 ms | 1396 KiB | 13 Q