3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = Array ( "chann_1" => 155.755, "chann_2" => 154.61, "chann_3" => 156.719, "chann_4" => 156.727, "chann_5" => 155.797, "chann_6" => 157.615, "chann_7" => 154.257, "chann_8" => 151.724, "chann_9" => 156.549, "chann_10" => 156.594, "chann_11" => 157.56, "chann_12" => 156.405 ); Arsort($arr); Var_dump($arr); $keys = array_keys($arr); Echo $keys[round(count($keys)/2)];
Output for git.master, git.master_jit, rfc.property-hooks
array(12) { ["chann_6"]=> float(157.615) ["chann_11"]=> float(157.56) ["chann_4"]=> float(156.727) ["chann_3"]=> float(156.719) ["chann_10"]=> float(156.594) ["chann_9"]=> float(156.549) ["chann_12"]=> float(156.405) ["chann_5"]=> float(155.797) ["chann_1"]=> float(155.755) ["chann_2"]=> float(154.61) ["chann_7"]=> float(154.257) ["chann_8"]=> float(151.724) } chann_12

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:
49.75 ms | 402 KiB | 8 Q