3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('id' => 'a','b','c','d','e','f','g'); $new_value = $array['id']; unset($arr['id']); array_unshift($array, $new_value); var_dump($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NodX6
function name:  (null)
number of ops:  12
compiled vars:  !0 = $array, !1 = $new_value, !2 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        FETCH_DIM_R                                      ~4      !0, 'id'
          2        ASSIGN                                                   !1, ~4
    4     3        UNSET_DIM                                                !2, 'id'
    5     4        INIT_FCALL                                               'array_unshift'
          5        SEND_REF                                                 !0
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    6     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.81 ms | 1385 KiB | 17 Q