3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = [['WIII','WARJ'], ['WIII','WARJ'], ['WARJ','WIII']]; array_walk($data, 'sort'); $data = array_unique($data, SORT_REGULAR); var_dump($data);
based on A1gkX
Output for 7.0.0 - 7.2.0
array(2) { [0]=> array(2) { [0]=> string(4) "WARJ" [1]=> string(4) "WIII" } [1]=> array(2) { [0]=> string(4) "WIII" [1]=> string(4) "WARJ" } }
Output for 5.4.11 - 5.6.28
array(1) { [0]=> array(2) { [0]=> string(4) "WARJ" [1]=> string(4) "WIII" } }
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/3suge on line 3
Process exited with code 255.