3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ['asd' => 23, 'asddd' => 1, 'as' => 22, 'asdddsas' => 0]; var_dump($arr); asort($arr); var_dump($arr); $key = array_shift(array_keys($arr)); var_dump($key);
Output for git.master, git.master_jit, rfc.property-hooks
array(4) { ["asd"]=> int(23) ["asddd"]=> int(1) ["as"]=> int(22) ["asdddsas"]=> int(0) } array(4) { ["asdddsas"]=> int(0) ["asddd"]=> int(1) ["as"]=> int(22) ["asd"]=> int(23) } Notice: Only variables should be passed by reference in /in/oeZAF on line 6 string(8) "asdddsas"

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