3v4l.org

run code in 300+ PHP versions simultaneously
<?php $q = array(10, 'test'); var_dump($q); $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/fTXF6
function name:  (null)
number of ops:  15
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        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    6     4        CAST                                          6  ~5      !0
          5        INIT_ARRAY                                       ~6      ~5, 0
          6        ASSIGN                                                   !1, ~6
    8     7        INIT_FCALL                                               'array_shift'
          8        SEND_REF                                                 !1
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !2, $8
    9    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.9 ms | 1394 KiB | 17 Q