3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $your_array = array(0 =>array("codes"=>array(7,4,5)), 1 =>array("codes"=>array(4,45,1))); foreach ($your_array as $array){ $your_array['codes'] = array_multisort($array['codes']); } var_dump($your_array); //$ar1 = array (1002, 100, 100); //array_multisort ($ar1); //var_dump($ar1);
Output for 5.1.1 - 7.1.0
array(3) { [0]=> array(1) { ["codes"]=> array(3) { [0]=> int(7) [1]=> int(4) [2]=> int(5) } } [1]=> array(1) { ["codes"]=> array(3) { [0]=> int(4) [1]=> int(45) [2]=> int(1) } } ["codes"]=> bool(true) }
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/5Dcfm on line 17
Process exited with code 255.
Output for 4.3.0 - 5.0.5
array(3) { [0]=> array(1) { ["codes"]=> array(3) { [0]=> int(4) [1]=> int(5) [2]=> int(7) } } [1]=> array(1) { ["codes"]=> array(3) { [0]=> int(1) [1]=> int(4) [2]=> int(45) } } ["codes"]=> bool(true) }