3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php list($a,$a,$b) = array(3,2,1); var_dump($a); var_dump($b); list($c,$c,$c) = array(3,2,1); var_dump($c);
Output for 7.0.0 - 7.2.0
int(2) int(1) int(1)
Output for 4.3.0 - 5.6.28
int(3) int(1) int(3)