3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $users = array( array('Foo', 'Bar'), array('Baz', 'Qux'), ); // Before foreach ($users as $user) { list($firstName, $lastName) = $user; echo "First name: $firstName, last name: $lastName. "; }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
First name: Foo, last name: Bar. First name: Baz, last name: Qux.