3v4l.org

run code in 300+ PHP versions simultaneously
<?php $map = [ @foo => @bar, @bar => @qux, @qux => @zip, ]; if ($map[@foo] === @bar) { var_dump('UP AND AT THEM!'); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 34
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 34
filename:       /in/ao4ZU
function name:  (null)
number of ops:  35
compiled vars:  !0 = $map
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   BEGIN_SILENCE                                    ~1      
          1        FETCH_CONSTANT                                   ~2      'foo'
          2        END_SILENCE                                              ~1
          3        BEGIN_SILENCE                                    ~3      
          4        FETCH_CONSTANT                                   ~4      'bar'
          5        END_SILENCE                                              ~3
          6        INIT_ARRAY                                       ~5      ~4, ~2
    5     7        BEGIN_SILENCE                                    ~6      
          8        FETCH_CONSTANT                                   ~7      'bar'
          9        END_SILENCE                                              ~6
         10        BEGIN_SILENCE                                    ~8      
         11        FETCH_CONSTANT                                   ~9      'qux'
         12        END_SILENCE                                              ~8
         13        ADD_ARRAY_ELEMENT                                ~5      ~9, ~7
    6    14        BEGIN_SILENCE                                    ~10     
         15        FETCH_CONSTANT                                   ~11     'qux'
         16        END_SILENCE                                              ~10
         17        BEGIN_SILENCE                                    ~12     
         18        FETCH_CONSTANT                                   ~13     'zip'
         19        END_SILENCE                                              ~12
         20        ADD_ARRAY_ELEMENT                                ~5      ~13, ~11
    3    21        ASSIGN                                                   !0, ~5
    8    22        BEGIN_SILENCE                                    ~15     
         23        FETCH_CONSTANT                                   ~16     'foo'
         24        END_SILENCE                                              ~15
         25        FETCH_DIM_R                                      ~17     !0, ~16
         26        BEGIN_SILENCE                                    ~18     
         27        FETCH_CONSTANT                                   ~19     'bar'
         28        END_SILENCE                                              ~18
         29        IS_IDENTICAL                                             ~17, ~19
         30      > JMPZ                                                     ~20, ->34
    9    31    >   INIT_FCALL                                               'var_dump'
         32        SEND_VAL                                                 'UP+AND+AT+THEM%21'
         33        DO_ICALL                                                 
   10    34    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.04 ms | 1401 KiB | 15 Q