3v4l.org

run code in 500+ PHP versions simultaneously
<?php // example value $squar['product'] =50; if ($squar['product'] ==0){ echo "soldout"; } elseif ($squar['product']>0 & $squar['product']<=100){ echo $squar['product']; } elseif($squar['product']>100){ echo 'plus 100'; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 16
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 20
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/Lr54j
function name:  (null)
number of ops:  21
compiled vars:  !0 = $squar
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                                   !0, 'product'
          1        OP_DATA                                                      50
    6     2        FETCH_DIM_R                                          ~2      !0, 'product'
          3        IS_EQUAL                                                     ~2, 0
          4      > JMPZ                                                         ~3, ->7
    8     5    >   ECHO                                                         'soldout'
    6     6      > JMP                                                          ->20
   10     7    >   FETCH_DIM_R                                          ~4      !0, 'product'
          8        IS_SMALLER                                           ~5      0, ~4
          9        FETCH_DIM_R                                          ~6      !0, 'product'
         10        IS_SMALLER_OR_EQUAL                                  ~7      ~6, 100
         11        BW_AND                                               ~8      ~5, ~7
         12      > JMPZ                                                         ~8, ->16
   12    13    >   FETCH_DIM_R                                          ~9      !0, 'product'
         14        ECHO                                                         ~9
   10    15      > JMP                                                          ->20
   14    16    >   FETCH_DIM_R                                          ~10     !0, 'product'
         17        IS_SMALLER                                                   100, ~10
         18      > JMPZ                                                         ~11, ->20
   16    19    >   ECHO                                                         'plus+100'
   20    20    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
225.54 ms | 2126 KiB | 13 Q