3v4l.org

run code in 200+ 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);

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for branch php-master
array(17) { ["k1"]=> int(0) ["k10"]=> int(0) ["k16"]=> int(0) ["k15"]=> int(0) ["k14"]=> int(0) ["k13"]=> int(0) ["k12"]=> int(0) ["k11"]=> int(0) ["k9"]=> int(0) ["k8"]=> int(0) ["k6"]=> int(0) ["k4"]=> int(0) ["k3"]=> int(0) ["k17"]=> int(0) ["k2"]=> int(1) ["k5"]=> int(3) ["k7"]=> int(4) }
Output for branch php-master+jit
array(17) { ["k1"]=> int(0) ["k10"]=> int(0) ["k16"]=> int(0) ["k15"]=> int(0) ["k14"]=> int(0) ["k13"]=> int(0) ["k12"]=> int(0) ["k11"]=> int(0) ["k9"]=> int(0) ["k8"]=> int(0) ["k6"]=> int(0) ["k4"]=> int(0) ["k3"]=> int(0) ["k17"]=> int(0) ["k2"]=> int(1) ["k5"]=> int(3) ["k7"]=> int(4) }
Output for branch php-master+opcache
array(17) { ["k1"]=> int(0) ["k10"]=> int(0) ["k16"]=> int(0) ["k15"]=> int(0) ["k14"]=> int(0) ["k13"]=> int(0) ["k12"]=> int(0) ["k11"]=> int(0) ["k9"]=> int(0) ["k8"]=> int(0) ["k6"]=> int(0) ["k4"]=> int(0) ["k3"]=> int(0) ["k17"]=> int(0) ["k2"]=> int(1) ["k5"]=> int(3) ["k7"]=> int(4) }

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