3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 'k1' => 0, 'k2' => 1, 'k3' => 0, 'k4' => 0, 'k5' => 3, 'k6' => 0, 'k7' => 4, 'k8' => 0, 'k9' => 0, 'k10' => 0, 'k11' => 0, 'k12' => 0, 'k13' => 0, 'k14' => 0, 'k15' => 0, 'k16' => 0, 'k17' => 0, ]; asort($arr); var_dump($arr);
Output for git.master, git.master_jit, rfc.property-hooks
array(17) { ["k1"]=> int(0) ["k3"]=> int(0) ["k4"]=> int(0) ["k6"]=> int(0) ["k8"]=> int(0) ["k9"]=> int(0) ["k10"]=> int(0) ["k11"]=> int(0) ["k12"]=> int(0) ["k13"]=> int(0) ["k14"]=> int(0) ["k15"]=> int(0) ["k16"]=> int(0) ["k17"]=> int(0) ["k2"]=> int(1) ["k5"]=> int(3) ["k7"]=> int(4) }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
67.66 ms | 402 KiB | 8 Q