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 $x == $y ? 'y1' : 'n1'; echo $x == $z ? 'y2' : 'n2'; echo $x == $n ? 'y3' : 'n3';
Output for hhvm-3.10.1
n1n2y3