3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = false; $b = false; $c = false; if ($a || $b || $c) { echo 1; } else { echo 2; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
2 jumps found. (Code = 47) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
Branch analysis from position: 5
filename:       /in/28ld7
function name:  (null)
number of ops:  12
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <false>
    3     1        ASSIGN                                                   !1, <false>
    4     2        ASSIGN                                                   !2, <false>
    7     3      > JMPNZ_EX                                         ~6      !0, ->5
          4    >   BOOL                                             ~6      !1
          5    > > JMPNZ_EX                                         ~6      ~6, ->7
          6    >   BOOL                                             ~6      !2
          7    > > JMPZ                                                     ~6, ->10
    8     8    >   ECHO                                                     1
          9      > JMP                                                      ->11
   10    10    >   ECHO                                                     2
   11    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.27 ms | 1384 KiB | 13 Q