3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = [1, 2, 4]; for ($i = 1; $i <= 4; $i++) { echo $i.'. '.(in_array($i, $a) ? 'true' : 'false').PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
Branch analysis from position: 3
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
Branch analysis from position: 3
filename:       /in/Dco3b
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a, !1 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        ASSIGN                                                       !1, 1
          2      > JMP                                                          ->13
    5     3    >   CONCAT                                               ~4      !1, '.+'
          4        FRAMELESS_ICALL_2                in_array            ~5      !1, !0
          5      > JMPZ                                                         ~5, ->8
          6    >   QM_ASSIGN                                            ~6      'true'
          7      > JMP                                                          ->9
          8    >   QM_ASSIGN                                            ~6      'false'
          9    >   CONCAT                                               ~7      ~4, ~6
         10        CONCAT                                               ~8      ~7, '%0A'
         11        ECHO                                                         ~8
    4    12        PRE_INC                                                      !1
         13    >   IS_SMALLER_OR_EQUAL                                          !1, 4
         14      > JMPNZ                                                        ~10, ->3
    6    15    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
194.02 ms | 2180 KiB | 14 Q