3v4l.org

run code in 300+ PHP versions simultaneously
<?php $line_items = array(); $t = $line_items ? reset($line_items) : FALSE; var_dump($t);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 7
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MZtBT
function name:  (null)
number of ops:  13
compiled vars:  !0 = $line_items, !1 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1      > JMPZ                                                     !0, ->7
          2    >   INIT_FCALL                                               'reset'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                         $3      
          5        QM_ASSIGN                                        ~4      $3
          6      > JMP                                                      ->8
          7    >   QM_ASSIGN                                        ~4      <false>
          8    >   ASSIGN                                                   !1, ~4
    7     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.8 ms | 1394 KiB | 17 Q