3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = range(1000, 1); $a = array_shift(array_slice($array, 0, 1)); echo $a;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dcgKH
function name:  (null)
number of ops:  16
compiled vars:  !0 = $array, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1000
          2        SEND_VAL                                                 1
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    3     5        INIT_FCALL                                               'array_shift'
          6        INIT_FCALL                                               'array_slice'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 0
          9        SEND_VAL                                                 1
         10        DO_ICALL                                         $4      
         11        SEND_VAR_NO_REF                               0          $4
         12        DO_ICALL                                         $5      
         13        ASSIGN                                                   !1, $5
    4    14        ECHO                                                     !1
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.71 ms | 1394 KiB | 19 Q