3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.51 ms | 1394 KiB | 17 Q