3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = array ( 0 => array ( 'field_id' => 1, 'field_name' => 'NO_INSCRIPTION', 'order_number' => 0 ), 1 => array ( 'field_id' => 2, 'field_name' => 'NO_ADDENDA', 'order_number' => 1 ), 2 => array ( 'field_id' => 3, 'field_name' => 'CODE_LANGUE', 'order_number' => 2 ), 3 => array ( 'field_id' => 7, 'field_name' => 'TEXTE', 'order_number' => 3 ) ); $from = 3; $to = 1; array_splice($arr, $to, 0, array_splice($arr, $from, 1)); print_r($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WjEgE
function name:  (null)
number of ops:  18
compiled vars:  !0 = $arr, !1 = $from, !2 = $to
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
   29     1        ASSIGN                                                       !1, 3
   30     2        ASSIGN                                                       !2, 1
   31     3        INIT_FCALL                                                   'array_splice'
          4        SEND_REF                                                     !0
          5        SEND_VAR                                                     !2
          6        SEND_VAL                                                     0
          7        INIT_FCALL                                                   'array_splice'
          8        SEND_REF                                                     !0
          9        SEND_VAR                                                     !1
         10        SEND_VAL                                                     1
         11        DO_ICALL                                             $6      
         12        SEND_VAR                                                     $6
         13        DO_ICALL                                                     
   33    14        INIT_FCALL                                                   'print_r'
         15        SEND_VAR                                                     !0
         16        DO_ICALL                                                     
         17      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
130.3 ms | 479 KiB | 9 Q