3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $links[0]="zero"; $links[1]="um"; $links[2]="dois"; $links[1] = current($links); $links[1] = next($links); print_r($links);
based on 3bL5a
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0beta1
Array ( [0] => zero [1] => zero [2] => dois )