3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.94 ms | 1394 KiB | 15 Q