3v4l.org

run code in 300+ PHP versions simultaneously
<?php $what = [ 'a' => 1, 'b' => 2]; if ( $what['c'] === 2 && $what['c'] === 3 ) { echo 'hi'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
Branch analysis from position: 7
filename:       /in/Pl4et
function name:  (null)
number of ops:  10
compiled vars:  !0 = $what
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        FETCH_DIM_R                                      ~2      !0, 'c'
          2        IS_IDENTICAL                                     ~3      ~2, 2
          3      > JMPZ_EX                                          ~3      ~3, ->7
          4    >   FETCH_DIM_R                                      ~4      !0, 'c'
          5        IS_IDENTICAL                                     ~5      ~4, 3
          6        BOOL                                             ~3      ~5
          7    > > JMPZ                                                     ~3, ->9
    6     8    >   ECHO                                                     'hi'
    7     9    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.17 ms | 1392 KiB | 13 Q