3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); $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/Itpd9
function name:  (null)
number of ops:  19
compiled vars:  !0 = $array, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 0
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'range'
          4        SEND_VAL                                                 1000
          5        SEND_VAL                                                 1
          6        DO_ICALL                                         $3      
          7        ASSIGN                                                   !0, $3
    5     8        INIT_FCALL                                               'array_shift'
          9        INIT_FCALL                                               'array_slice'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 0
         12        SEND_VAL                                                 1
         13        DO_ICALL                                         $5      
         14        SEND_VAR_NO_REF                               0          $5
         15        DO_ICALL                                         $6      
         16        ASSIGN                                                   !1, $6
    6    17        ECHO                                                     !1
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.87 ms | 1394 KiB | 21 Q