3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.05 ms | 1385 KiB | 17 Q