3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user_id=1;$rival_id=2; $score_info=array('match'=>array('home'=>3,'away'=>1), 'pk'=>array('home'=>0,'away'=>0)); $warning_log = false; $user_power = 1; $rival_power = 3; $goal_diff = $score_info['match']['home'] + $score_info['pk']['home'] - $score_info['match']['away'] - $score_info['pk']['away'];if($user_power / $rival_power > 2 && $goal_diff > 2) $warning_log = true; if($user_power / $rival_power <= 2 && $user_power / $rival_power >= 0.8 && $goal_diff > 8) $warning_log = true; if($score_info['match']['home'] == $score_info['match']['away'] && $score_info['pk']['home'] + $score_info['pk']['away'] > 0) $warning_log = true; if($warning_log){ $logParams = array( 'user_power' => $user_power, 'rival_power' => $rival_power, 'score_info' => $score_info, ); echo "ss"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 25
Branch analysis from position: 24
2 jumps found. (Code = 46) Position 1 = 28, Position 2 = 31
Branch analysis from position: 28
2 jumps found. (Code = 46) Position 1 = 32, Position 2 = 34
Branch analysis from position: 32
2 jumps found. (Code = 43) Position 1 = 35, Position 2 = 36
Branch analysis from position: 35
2 jumps found. (Code = 46) Position 1 = 42, Position 2 = 49
Branch analysis from position: 42
2 jumps found. (Code = 43) Position 1 = 50, Position 2 = 51
Branch analysis from position: 50
2 jumps found. (Code = 43) Position 1 = 52, Position 2 = 57
Branch analysis from position: 52
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 57
Branch analysis from position: 51
Branch analysis from position: 49
Branch analysis from position: 36
Branch analysis from position: 34
Branch analysis from position: 31
Branch analysis from position: 25
Branch analysis from position: 23
filename:       /in/FZQbG
function name:  (null)
number of ops:  58
compiled vars:  !0 = $user_id, !1 = $rival_id, !2 = $score_info, !3 = $warning_log, !4 = $user_power, !5 = $rival_power, !6 = $goal_diff, !7 = $logParams
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
          1        ASSIGN                                                   !1, 2
    3     2        ASSIGN                                                   !2, <array>
    4     3        ASSIGN                                                   !3, <false>
    5     4        ASSIGN                                                   !4, 1
    6     5        ASSIGN                                                   !5, 3
    7     6        FETCH_DIM_R                                      ~14     !2, 'match'
          7        FETCH_DIM_R                                      ~15     ~14, 'home'
          8        FETCH_DIM_R                                      ~16     !2, 'pk'
          9        FETCH_DIM_R                                      ~17     ~16, 'home'
         10        ADD                                              ~18     ~15, ~17
    8    11        FETCH_DIM_R                                      ~19     !2, 'match'
         12        FETCH_DIM_R                                      ~20     ~19, 'away'
         13        SUB                                              ~21     ~18, ~20
         14        FETCH_DIM_R                                      ~22     !2, 'pk'
         15        FETCH_DIM_R                                      ~23     ~22, 'away'
         16        SUB                                              ~24     ~21, ~23
    7    17        ASSIGN                                                   !6, ~24
    8    18        DIV                                              ~26     !4, !5
         19        IS_SMALLER                                       ~27     2, ~26
         20      > JMPZ_EX                                          ~27     ~27, ->23
         21    >   IS_SMALLER                                       ~28     2, !6
         22        BOOL                                             ~27     ~28
         23    > > JMPZ                                                     ~27, ->25
    9    24    >   ASSIGN                                                   !3, <true>
   10    25    >   DIV                                              ~30     !4, !5
         26        IS_SMALLER_OR_EQUAL                              ~31     ~30, 2
         27      > JMPZ_EX                                          ~31     ~31, ->31
   11    28    >   DIV                                              ~32     !4, !5
         29        IS_SMALLER_OR_EQUAL                              ~33     0.8, ~32
         30        BOOL                                             ~31     ~33
         31    > > JMPZ_EX                                          ~31     ~31, ->34
         32    >   IS_SMALLER                                       ~34     8, !6
         33        BOOL                                             ~31     ~34
         34    > > JMPZ                                                     ~31, ->36
   12    35    >   ASSIGN                                                   !3, <true>
   13    36    >   FETCH_DIM_R                                      ~36     !2, 'match'
         37        FETCH_DIM_R                                      ~37     ~36, 'home'
         38        FETCH_DIM_R                                      ~38     !2, 'match'
         39        FETCH_DIM_R                                      ~39     ~38, 'away'
         40        IS_EQUAL                                         ~40     ~37, ~39
         41      > JMPZ_EX                                          ~40     ~40, ->49
   14    42    >   FETCH_DIM_R                                      ~41     !2, 'pk'
         43        FETCH_DIM_R                                      ~42     ~41, 'home'
         44        FETCH_DIM_R                                      ~43     !2, 'pk'
         45        FETCH_DIM_R                                      ~44     ~43, 'away'
         46        ADD                                              ~45     ~42, ~44
         47        IS_SMALLER                                       ~46     0, ~45
         48        BOOL                                             ~40     ~46
         49    > > JMPZ                                                     ~40, ->51
   15    50    >   ASSIGN                                                   !3, <true>
   16    51    > > JMPZ                                                     !3, ->57
   18    52    >   INIT_ARRAY                                       ~48     !4, 'user_power'
   19    53        ADD_ARRAY_ELEMENT                                ~48     !5, 'rival_power'
   20    54        ADD_ARRAY_ELEMENT                                ~48     !2, 'score_info'
   17    55        ASSIGN                                                   !7, ~48
   22    56        ECHO                                                     'ss'
   23    57    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.67 ms | 1390 KiB | 13 Q