3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = ['1', '2']; $y = ['2', '1']; $z = ['1', '2', '4']; $n = [1, 2]; echo sort($x) === sort($y) ? 'y1' : 'n1'; echo sort($x) === sort($z) ? 'y2' : 'n2'; echo sort($x) === sort($n) ? 'y3' : 'n3';
Output for hhvm-3.10.1
y1y2y3