3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('unu'); $u = array_shift($a); $x = array_shift($a) ? : 'x'; var_dump($x);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4ghQh
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        JMP_SET                                          ~7      $6, ->10
          9        QM_ASSIGN                                        ~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:
146.61 ms | 1394 KiB | 17 Q