3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 5; $i > 0; $i--) { $ratingAvg[$i] = 0; } var_dump($ratingAvg); $ratingAvg = array_reverse(array_fill(1, 5 ,0), true); var_dump($ratingAvg); $ratingAvg = array_fill_keys(range(5, 1), 0); var_dump($ratingAvg);
Output for git.master, git.master_jit, rfc.property-hooks
array(5) { [5]=> int(0) [4]=> int(0) [3]=> int(0) [2]=> int(0) [1]=> int(0) } array(5) { [5]=> int(0) [4]=> int(0) [3]=> int(0) [2]=> int(0) [1]=> int(0) } array(5) { [5]=> int(0) [4]=> int(0) [3]=> int(0) [2]=> int(0) [1]=> int(0) }

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