3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( array( 'test1' => 'testing1' ), array( 'test2' => array( 1 =>'testing2' ) ) ); $newarr = array_shift($arr); print_r ($newarr); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KQCdE
function name:  (null)
number of ops:  9
compiled vars:  !0 = $arr, !1 = $newarr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   14     1        INIT_FCALL                                               'array_shift'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   16     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
   18     8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.43 ms | 1394 KiB | 17 Q