3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(); $a[0][0] = "a"; $a[0][1] = "b"; $a[1][0] = "y"; $a[1][1] = "z"; foreach ($a as $v1) { foreach ($v1 as $v2) { echo "$v2\n"; echo "$a\n"; } }
based on DQTqO
Output for 5.4.0 - 7.2.0
a Notice: Array to string conversion in /in/JusRb on line 12 Array b Notice: Array to string conversion in /in/JusRb on line 12 Array y Notice: Array to string conversion in /in/JusRb on line 12 Array z Notice: Array to string conversion in /in/JusRb on line 12 Array
Output for 4.3.0 - 5.3.29
a Array b Array y Array z Array