3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array ( 1,1,2,2,2); while($a = array_pop($arr)){ if(in_array($a,$arr)) continue; echo $a; }
based on WpO6P
Output for 5.6.0 - 7.3.0alpha1
21