3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $row=array('username'=>'user1','password'=>'testpass'); foreach ($row as $rows){ echo $rows['username']; echo $rows['password']; } ?>
Output for 5.4.0 - 7.1.0
Warning: Illegal string offset 'username' in /in/qYan6 on line 4 u Warning: Illegal string offset 'password' in /in/qYan6 on line 5 u Warning: Illegal string offset 'username' in /in/qYan6 on line 4 t Warning: Illegal string offset 'password' in /in/qYan6 on line 5 t
Output for 4.3.0 - 5.3.29
uutt