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($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"; }
Output for git.master, git.master_jit, rfc.property-hooks

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
36.12 ms | 401 KiB | 8 Q