3v4l.org

run code in 300+ PHP versions simultaneously
<?php $intput = [1,2,3]; print_r(["smazat"=>array_splice($intput, 0)]); print_r(["nechat"=>$intput]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XDAMO
function name:  (null)
number of ops:  14
compiled vars:  !0 = $intput
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'array_splice'
          3        SEND_REF                                                 !0
          4        SEND_VAL                                                 0
          5        DO_ICALL                                         $2      
          6        INIT_ARRAY                                       ~3      $2, 'smazat'
          7        SEND_VAL                                                 ~3
          8        DO_ICALL                                                 
    4     9        INIT_FCALL                                               'print_r'
         10        INIT_ARRAY                                       ~5      !0, 'nechat'
         11        SEND_VAL                                                 ~5
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.33 ms | 1394 KiB | 17 Q