3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = [3, 9, 6]; $b = [7, 5, 2]; $x = sort($a); $y = sort($b); foreach ($b as $key => $value) { if ($a[$key] > $value) { echo "DOESN'T FIT!"; die; } } echo "FITS!";
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1
DOESN'T FIT!