3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $sizes = array("L", "XXXL", "M", "S", "FOO"); function compare($a, $b) { $sizeincrement = array("XS", "S", "M", "L", "XL", "XXL", "XXXL"); if(in_array($b,$sizeincrement) return array_search($a, $sizeincrement) > array_search($b, $sizeincrement); else return false; } usort($sizes, "compare"); print_r($sizes);
Output for 5.4.0 - 5.4.23
Parse error: syntax error, unexpected 'return' (T_RETURN) in /in/shAZO on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_RETURN in /in/shAZO on line 6
Process exited with code 255.