3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array('a' => 2, 'b' => 1, 'c' => 4); list($array['a'], $array['c']) = array($array['c'], $array['a']); var_dump($array);
Output for 4.3.0 - 7.2.0
array(3) { ["a"]=> int(4) ["b"]=> int(1) ["c"]=> int(2) }