3v4l.org

run code in 200+ 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 7.2.0
Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/uNmGd on line 7 Notice: Undefined index: i in /in/uNmGd on line 7 vs team_two Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/uNmGd on line 7 Notice: Undefined index: i in /in/uNmGd on line 7 vs team_three Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/uNmGd on line 7 Notice: Undefined index: i in /in/uNmGd on line 7 vs team_one Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/uNmGd on line 7 Notice: Undefined index: i in /in/uNmGd on line 7 vs team_three Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/uNmGd on line 7 Notice: Undefined index: i in /in/uNmGd on line 7 vs team_one Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/uNmGd on line 7 Notice: Undefined index: i in /in/uNmGd on line 7 vs team_two
Output for 5.3.0 - 7.1.7
Notice: Use of undefined constant i - assumed 'i' in /in/uNmGd on line 7 Notice: Undefined index: i in /in/uNmGd on line 7 vs team_two Notice: Use of undefined constant i - assumed 'i' in /in/uNmGd on line 7 Notice: Undefined index: i in /in/uNmGd on line 7 vs team_three Notice: Use of undefined constant i - assumed 'i' in /in/uNmGd on line 7 Notice: Undefined index: i in /in/uNmGd on line 7 vs team_one Notice: Use of undefined constant i - assumed 'i' in /in/uNmGd on line 7 Notice: Undefined index: i in /in/uNmGd on line 7 vs team_three Notice: Use of undefined constant i - assumed 'i' in /in/uNmGd on line 7 Notice: Undefined index: i in /in/uNmGd on line 7 vs team_one Notice: Use of undefined constant i - assumed 'i' in /in/uNmGd on line 7 Notice: Undefined index: i in /in/uNmGd on line 7 vs team_two
Output for 4.3.0 - 5.2.17
Notice: Use of undefined constant i - assumed 'i' in /in/uNmGd on line 7 Notice: Undefined index: i in /in/uNmGd on line 7 vs team_two Notice: Use of undefined constant i - assumed 'i' in /in/uNmGd on line 7 Notice: Undefined index: i in /in/uNmGd on line 7 vs team_three Notice: Use of undefined constant i - assumed 'i' in /in/uNmGd on line 7 Notice: Undefined index: i in /in/uNmGd on line 7 vs team_one Notice: Use of undefined constant i - assumed 'i' in /in/uNmGd on line 7 Notice: Undefined index: i in /in/uNmGd on line 7 vs team_three Notice: Use of undefined constant i - assumed 'i' in /in/uNmGd on line 7 Notice: Undefined index: i in /in/uNmGd on line 7 vs team_one Notice: Use of undefined constant i - assumed 'i' in /in/uNmGd on line 7 Notice: Undefined index: i in /in/uNmGd on line 7 vs team_two