3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function tg($T) { $T['i'] = array_unique($T['i']); var_dump($T['i']); } $i = array( 'i' => array(1, 1, 3, 5) ); tg($i); var_dump($i);
Output for 4.3.0 - 7.1.0
array(3) { [0]=> int(1) [2]=> int(3) [3]=> int(5) } array(1) { ["i"]=> array(4) { [0]=> int(1) [1]=> int(1) [2]=> int(3) [3]=> int(5) } }