3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $row = 'Foo'; echo "What is \$row?\n"; var_dump($row); $rows = ['Hello', 'Test', 'Wow']; echo "Now lets run the same thing again, only this time not as reference\n"; foreach ($rows as $row) { var_dump($row); } echo "And print \$row for the sake of it\n"; var_dump($row);
based on fHfVZ
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.1.0 - 7.3.0rc2
What is $row? string(3) "Foo" Now lets run the same thing again, only this time not as reference string(5) "Hello" string(4) "Test" string(3) "Wow" And print $row for the sake of it string(3) "Wow"