3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $teams=array('team_one','team_two','team_three'); $count = count($teams); for ($i = 0; $i < $count; $i++) { for($j = 0; $j < $count; $j++) { if ($i == $j) continue; echo $teams[i] . " vs ". $teams[$j] . "\n"; } }
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
Notice: Use of undefined constant i - assumed 'i' in /in/E2BHI on line 8 Notice: Undefined index: i in /in/E2BHI on line 8 vs team_two Notice: Use of undefined constant i - assumed 'i' in /in/E2BHI on line 8 Notice: Undefined index: i in /in/E2BHI on line 8 vs team_three Notice: Use of undefined constant i - assumed 'i' in /in/E2BHI on line 8 Notice: Undefined index: i in /in/E2BHI on line 8 vs team_one Notice: Use of undefined constant i - assumed 'i' in /in/E2BHI on line 8 Notice: Undefined index: i in /in/E2BHI on line 8 vs team_three Notice: Use of undefined constant i - assumed 'i' in /in/E2BHI on line 8 Notice: Undefined index: i in /in/E2BHI on line 8 vs team_one Notice: Use of undefined constant i - assumed 'i' in /in/E2BHI on line 8 Notice: Undefined index: i in /in/E2BHI on line 8 vs team_two
Output for 4.3.0 - 5.2.17
Notice: Use of undefined constant i - assumed 'i' in /in/E2BHI on line 8 Notice: Undefined index: i in /in/E2BHI on line 8 vs team_two Notice: Use of undefined constant i - assumed 'i' in /in/E2BHI on line 8 Notice: Undefined index: i in /in/E2BHI on line 8 vs team_three Notice: Use of undefined constant i - assumed 'i' in /in/E2BHI on line 8 Notice: Undefined index: i in /in/E2BHI on line 8 vs team_one Notice: Use of undefined constant i - assumed 'i' in /in/E2BHI on line 8 Notice: Undefined index: i in /in/E2BHI on line 8 vs team_three Notice: Use of undefined constant i - assumed 'i' in /in/E2BHI on line 8 Notice: Undefined index: i in /in/E2BHI on line 8 vs team_one Notice: Use of undefined constant i - assumed 'i' in /in/E2BHI on line 8 Notice: Undefined index: i in /in/E2BHI on line 8 vs team_two