3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.15 ms | 941 KiB | 18 Q