3v4l.org

run code in 300+ PHP versions simultaneously
<?php $listallfriendsarray = [1,2,3,4,5,6,7]; $listalreadydisplayed = [1,3,5,6]; array_splice($listallfriendsarray,0,count($listalreadydisplayed),$listalreadydisplayed); print_r($listallfriendsarray);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J1VuR
function name:  (null)
number of ops:  13
compiled vars:  !0 = $listallfriendsarray, !1 = $listalreadydisplayed
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    6     1        ASSIGN                                                   !1, <array>
    7     2        INIT_FCALL                                               'array_splice'
          3        SEND_REF                                                 !0
          4        SEND_VAL                                                 0
          5        COUNT                                            ~4      !1
          6        SEND_VAL                                                 ~4
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    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:
185.76 ms | 1394 KiB | 17 Q