3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $name1 = "name1"; $name2 = "name2"; $teams_name_points[$name1] = 12; $teams_name_points[$name2] = 2; var_dump(ksort($teams_name_points)); var_dump($teams_name_points);
based on Vmh2W
Output for 4.3.0 - 7.3.0rc3
bool(true) array(2) { ["name1"]=> int(12) ["name2"]=> int(2) }