3v4l.org

run code in 300+ PHP versions simultaneously
<?php $age = 19; $limit = 18; $is_milk = false; $price = 6;//beer price $money = 1; //the money he have $can_pay_it = $money > $price; $can_drink = ($age > $limit or $is_milk ) and $can_pay_it; echo $can_drink ? "can drink":"no beer for you"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
2 jumps found. (Code = 46) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
Branch analysis from position: 10
filename:       /in/MOFEM
function name:  (null)
number of ops:  19
compiled vars:  !0 = $age, !1 = $limit, !2 = $is_milk, !3 = $price, !4 = $money, !5 = $can_pay_it, !6 = $can_drink
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 19
    3     1        ASSIGN                                                   !1, 18
    4     2        ASSIGN                                                   !2, <false>
    5     3        ASSIGN                                                   !3, 6
    6     4        ASSIGN                                                   !4, 1
    8     5        IS_SMALLER                                       ~12     !3, !4
          6        ASSIGN                                                   !5, ~12
   10     7        IS_SMALLER                                       ~14     !1, !0
          8      > JMPNZ_EX                                         ~14     ~14, ->10
          9    >   BOOL                                             ~14     !2
         10    >   ASSIGN                                           ~15     !6, ~14
         11      > JMPZ_EX                                          ~15     ~15, ->13
         12    >   BOOL                                             ~15     !5
   13    13    > > JMPZ                                                     !6, ->16
         14    >   QM_ASSIGN                                        ~16     'can+drink'
         15      > JMP                                                      ->17
         16    >   QM_ASSIGN                                        ~16     'no+beer+for+you'
         17    >   ECHO                                                     ~16
   14    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.87 ms | 1394 KiB | 13 Q