3v4l.org

run code in 300+ PHP versions simultaneously
<?php $range = []; for ($i = 1; $i < 14; $i++) { $range[$i] = $i; } var_dump($range); // VS $range = range(1, 14, 1); $range = array_combine($range, $range); var_dump($range);
Output for git.master, git.master_jit, rfc.property-hooks
array(13) { [1]=> int(1) [2]=> int(2) [3]=> int(3) [4]=> int(4) [5]=> int(5) [6]=> int(6) [7]=> int(7) [8]=> int(8) [9]=> int(9) [10]=> int(10) [11]=> int(11) [12]=> int(12) [13]=> int(13) } array(14) { [1]=> int(1) [2]=> int(2) [3]=> int(3) [4]=> int(4) [5]=> int(5) [6]=> int(6) [7]=> int(7) [8]=> int(8) [9]=> int(9) [10]=> int(10) [11]=> int(11) [12]=> int(12) [13]=> int(13) [14]=> int(14) }

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