3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrays = array( array( 'resize', 'width' => 2, 'height' => 3), array( 'resize', 'height' => 3, 'width' => 2), array( 'width' => 2, 'height' => 3, 'resize'), array( 'resize', '_width' => 2, 'height' => 3), ); foreach($arrays as $array){ ksort($array); var_dump($array); } echo "\n\n"; var_dump($arrays);
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [0]=> string(6) "resize" ["height"]=> int(3) ["width"]=> int(2) } array(3) { [0]=> string(6) "resize" ["height"]=> int(3) ["width"]=> int(2) } array(3) { [0]=> string(6) "resize" ["height"]=> int(3) ["width"]=> int(2) } array(3) { [0]=> string(6) "resize" ["_width"]=> int(2) ["height"]=> int(3) } array(4) { [0]=> array(3) { [0]=> string(6) "resize" ["width"]=> int(2) ["height"]=> int(3) } [1]=> array(3) { [0]=> string(6) "resize" ["height"]=> int(3) ["width"]=> int(2) } [2]=> array(3) { ["width"]=> int(2) ["height"]=> int(3) [0]=> string(6) "resize" } [3]=> array(3) { [0]=> string(6) "resize" ["_width"]=> int(2) ["height"]=> int(3) } }

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:
54.96 ms | 403 KiB | 8 Q