3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ 17 => 'value #1', 'test' => 'value #2', true => 'value #3', '0' => 'value #4' ]; var_dump($a); foreach($a as $k=>$v) { printf('$a[%s] = %s'."\n", $k, $v); }
Output for git.master, git.master_jit, rfc.property-hooks
array(4) { [17]=> string(8) "value #1" ["test"]=> string(8) "value #2" [1]=> string(8) "value #3" [0]=> string(8) "value #4" } $a[17] = value #1 $a[test] = value #2 $a[1] = value #3 $a[0] = value #4

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