Quiz 2

<?php
function swap(&$a, &$b) {
    list($a, $b) = [$b, $a];
}
$x = 1; $y = 2;
swap($x, $y);
echo $x;
Output
2