3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1 => 1, 'c'=>2, 'b'=>3, 'd'=>4); $a[] = "first value with implicit key"; unset($a['c']); $a['a'] = "new a"; $a[] = "second value with implicit key"; $a['b'] = "replaced b"; var_export($a);
Output for git.master
array ( 1 => 1, 'b' => 'replaced b', 'd' => 4, 2 => 'first value with implicit key', 'a' => 'new a', 3 => 'second value with implicit key', )

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:
77.99 ms | 415 KiB | 13 Q