3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user_is_admin = 0; $user_is_owner = 1; $has_permission_1 = $user_is_admin || $user_is_owner; $has_permission_2 = $user_is_admin or $user_is_owner; if ($has_permission_2) echo("Welkom\n"); else echo("Je hebt geen rechten!\n"); if ($user_is_admin or $user_is_owner) echo("Of toch wel...??????\n"); else echo("PHP is awesome"); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
2 jumps found. (Code = 47) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 47) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
Branch analysis from position: 11
2 jumps found. (Code = 47) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
Branch analysis from position: 14
Branch analysis from position: 8
Branch analysis from position: 4
filename:       /in/t8JgN
function name:  (null)
number of ops:  19
compiled vars:  !0 = $user_is_admin, !1 = $user_is_owner, !2 = $has_permission_1, !3 = $has_permission_2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
    4     1        ASSIGN                                                   !1, 1
    6     2      > JMPNZ_EX                                         ~6      !0, ->4
          3    >   BOOL                                             ~6      !1
          4    >   ASSIGN                                                   !2, ~6
    7     5        ASSIGN                                           ~8      !3, !0
          6      > JMPNZ_EX                                         ~8      ~8, ->8
          7    >   BOOL                                             ~8      !1
    9     8    > > JMPZ                                                     !3, ->11
   10     9    >   ECHO                                                     'Welkom%0A'
    9    10      > JMP                                                      ->12
   12    11    >   ECHO                                                     'Je+hebt+geen+rechten%21%0A'
   14    12    > > JMPNZ_EX                                         ~9      !0, ->14
         13    >   BOOL                                             ~9      !1
         14    > > JMPZ                                                     ~9, ->17
   15    15    >   ECHO                                                     'Of+toch+wel...%3F%3F%3F%3F%3F%3F%0A'
   14    16      > JMP                                                      ->18
   17    17    >   ECHO                                                     'PHP+is+awesome'
   18    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.77 ms | 1448 KiB | 13 Q