3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function dupa() { return array('bbb', 'ccc'); } list($a[], $a[], $a[]) = array(1, 2, 3); list($bbb, $ccc) = dupa(); var_dump($a); var_dump($bbb); var_dump($ccc);
based on 2s0Na
Output for 7.0.0 - 7.2.0
array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } string(3) "bbb" string(3) "ccc"
Output for 5.3.20 - 5.6.28
array(3) { [0]=> int(3) [1]=> int(2) [2]=> int(1) } string(3) "bbb" string(3) "ccc"