3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('a', 'b', 'c', 'd'); list(, $b, $c) = $arr; var_dump($b, $c); list(, , $c) = $arr; var_dump($c); list(, , $c, $d) = $arr; var_dump($c, $d); list(, , , $d) = $arr; var_dump($d);

preferences:
53.8 ms | 407 KiB | 5 Q