3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.97 ms | 1394 KiB | 17 Q