3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1 => 1, 'c'=>2, 'b'=>3, 'd'=>4); $a[] = "first value with implicit key"; unset($a['c']); $a['a'] = "new a"; $a[] = "second value with implicit key"; $a['b'] = "replaced b"; var_export($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZTB9c
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   QM_ASSIGN                                                !0
   3     1        ASSIGN_ADD                                    0          !0
         2        OP_DATA                                                  'first+value+with+implicit+key'
   4     3        UNSET_DIM                                                !0, 'c'
   5     4        ASSIGN_ADD                                    0          !0, 'a'
         5        OP_DATA                                                  'new+a'
   6     6        ASSIGN_ADD                                    0          !0
         7        OP_DATA                                                  'second+value+with+implicit+key'
   7     8        ASSIGN_ADD                                    0          !0, 'b'
         9        OP_DATA                                                  'replaced+b'
   8    10        INIT_FCALL                                               'var_export'
        11        SEND_VAR                                                 !0
        12        DO_ICALL                                                 
        13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
11.69 ms | 410 KiB | 7 Q