3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input = array(); $i =0; $j = 0; while($j <6) { while($i <6) { $input[$i] = $i; echo $input[$i]; $i++; } $j++; } $result = array_unique($input); print_r($result); ?>
Output for 4.3.0 - 5.6.25, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
012345Array ( [0] => 0 [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 5 )