3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php for($a=1;$a<4;$a++){ for($b=1; $b<4;$b++){ if($b == $a){ continue; } for($c=1; $c<4 ;$c++){ if($c == $a || $c == $b){ continue; } echo $a.$b.$c.", "; } } }
based on 6saJD
Output for 4.3.0 - 7.2.0
123, 132, 213, 231, 312, 321,