3v4l.org

run code in 300+ PHP versions simultaneously
<?php $assocArray = array(); $assocArray[0] = "a"; $assocArray[1] = "b"; $assocArray[2] = "c"; // At some point, remove a no longer needed element and replace it with // a new element at some point later. unset($assocArray[1]); // ... $assocArray[1] = "d"; echo implode(", ", $assocArray); // "a, c, d"
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CoihT
function name:  (null)
number of ops:  16
compiled vars:  !0 = $assocArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN_DIM                                               !0, 0
          2        OP_DATA                                                  'a'
    4     3        ASSIGN_DIM                                               !0, 1
          4        OP_DATA                                                  'b'
    5     5        ASSIGN_DIM                                               !0, 2
          6        OP_DATA                                                  'c'
    9     7        UNSET_DIM                                                !0, 1
   11     8        ASSIGN_DIM                                               !0, 1
          9        OP_DATA                                                  'd'
   13    10        INIT_FCALL                                               'implode'
         11        SEND_VAL                                                 '%2C+'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $6      
         14        ECHO                                                     $6
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.74 ms | 1394 KiB | 15 Q