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, $check) = $user; echo "First name: $firstName, last name: $lastName, check: $check. \n"; }
Output for 5.5.0 - 7.1.0
Notice: Undefined offset: 2 in /in/cvnFS on line 10 First name: Foo, last name: Bar, check: . Notice: Undefined offset: 2 in /in/cvnFS on line 10 First name: Baz, last name: Qux, check: .
Output for 4.3.0 - 5.4.45
First name: Foo, last name: Bar, check: . First name: Baz, last name: Qux, check: .