3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('unu', 'doi'); $u = array_shift($a); $x = array_shift($a) || 'x'; var_dump($x);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/eToaq
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $u, !2 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'array_shift'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    4     5        INIT_FCALL                                               'array_shift'
          6        SEND_REF                                                 !0
          7        DO_ICALL                                         $6      
          8      > JMPNZ_EX                                         ~7      $6, ->10
          9    >   BOOL                                             ~7      'x'
         10    >   ASSIGN                                                   !2, ~7
    5    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:
151.41 ms | 1394 KiB | 17 Q