3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 1; $i <= 5; $i++) { $ratingOpt[] = array('key' => $i, 'value' => $i); } var_dump($ratingOpt);
Output for git.master, git.master_jit, rfc.property-hooks
array(5) { [0]=> array(2) { ["key"]=> int(1) ["value"]=> int(1) } [1]=> array(2) { ["key"]=> int(2) ["value"]=> int(2) } [2]=> array(2) { ["key"]=> int(3) ["value"]=> int(3) } [3]=> array(2) { ["key"]=> int(4) ["value"]=> int(4) } [4]=> array(2) { ["key"]=> int(5) ["value"]=> int(5) } }

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