3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1, 1, 3); if ($a[0] == $a[1]) { print "Must be something else"; } if ($a[0] == $a[2]) { print "This will never execute"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
Branch analysis from position: 6
filename:       /in/KTd3T
function name:  (null)
number of ops:  12
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        FETCH_DIM_R                                      ~2      !0, 0
          2        FETCH_DIM_R                                      ~3      !0, 1
          3        IS_EQUAL                                                 ~2, ~3
          4      > JMPZ                                                     ~4, ->6
    6     5    >   ECHO                                                     'Must+be+something+else'
    9     6    >   FETCH_DIM_R                                      ~5      !0, 0
          7        FETCH_DIM_R                                      ~6      !0, 2
          8        IS_EQUAL                                                 ~5, ~6
          9      > JMPZ                                                     ~7, ->11
   10    10    >   ECHO                                                     'This+will+never+execute'
   11    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.08 ms | 1393 KiB | 13 Q