3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('a', INT_MAX => 'b', 'a' => 'b','c'); unset($a[4]); unset($a[5]); $a[4] = 'clement'; array_push($a, 'c'); var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/un07Y
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_ARRAY                                       ~1      'a'
          1        FETCH_CONSTANT                                   ~2      'INT_MAX'
          2        ADD_ARRAY_ELEMENT                                ~1      'b', ~2
          3        ADD_ARRAY_ELEMENT                                ~1      'b', 'a'
          4        ADD_ARRAY_ELEMENT                                ~1      'c'
          5        ASSIGN                                                   !0, ~1
    3     6        UNSET_DIM                                                !0, 4
    4     7        UNSET_DIM                                                !0, 5
    5     8        ASSIGN_DIM                                               !0, 4
          9        OP_DATA                                                  'clement'
    6    10        INIT_FCALL                                               'array_push'
         11        SEND_REF                                                 !0
         12        SEND_VAL                                                 'c'
         13        DO_ICALL                                                 
    7    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.93 ms | 1394 KiB | 17 Q