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 true and false; //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
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
Branch analysis from position: 10
filename:       /in/sAtgG
function name:  (null)
number of ops:  15
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
   12    13    >   ECHO                                                     <false>
   15    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.4 ms | 933 KiB | 14 Q