3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(array_fill(10, 3, 'hi')); var_dump(array_fill(0, 3, 'hi')); echo '<wtf>'."\n"; var_dump(array_fill(-10, 3, 'hi')); echo '</wtf>';
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [10]=> string(2) "hi" [11]=> string(2) "hi" [12]=> string(2) "hi" } array(3) { [0]=> string(2) "hi" [1]=> string(2) "hi" [2]=> string(2) "hi" } <wtf> array(3) { [-10]=> string(2) "hi" [-9]=> string(2) "hi" [-8]=> string(2) "hi" } </wtf>

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:
43.71 ms | 401 KiB | 8 Q