3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = [ "Country" => "Canada", "Provinces" => [ "Quebec", "Ontario", "British Columbia" ] ]; array_splice($arr["Provinces"], 0, 1); print_r($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OSOrt
function name:  (null)
number of ops:  11
compiled vars:  !0 = $arr
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   11     1        INIT_FCALL                                                   'array_splice'
          2        FETCH_DIM_W                                          $2      !0, 'Provinces'
          3        SEND_REF                                                     $2
          4        SEND_VAL                                                     0
          5        SEND_VAL                                                     1
          6        DO_ICALL                                                     
   12     7        INIT_FCALL                                                   'print_r'
          8        SEND_VAR                                                     !0
          9        DO_ICALL                                                     
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.45 ms | 2325 KiB | 15 Q