3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function foo($ok) { if ($ok) { return array('foo', 42); } return null; } foreach (array(true, false) as $ok) { list($a, $b) = foo($ok); printf("a: %s; b: %s\n", print_r($a, false), print_r($b, false)); }
based on JnBrm
Output for 4.3.0 - 7.1.0
foo42a: 1; b: 1 a: 1; b: 1