3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $user_id=1;$rival_id=2; $score_info=array('match'=>array('home'=>4,'away'=>1), 'pk'=>array('home'=>4,'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($rival_power / $user_power > 2 && $goal_diff > 2) $warning_log = true; if($rival_power / $user_power <= 2 && $rival_power / $user_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"; }
based on fPE8W
Output for 4.3.0 - 7.1.0
ss