3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [3=>'three',7=>'seven']; echo 'CURRENT: '.current($a).'; RESET: '.reset($a).PHP_EOL; $a+=[2=>'two']; var_export($a); echo PHP_EOL.'CURRENT: '.current($a).'; RESET: '.reset($a).PHP_EOL; sort($a); var_export($a); echo PHP_EOL.'CURRENT: '.current($a).'; RESET: '.reset($a).PHP_EOL; unset($a[0]); var_export($a); echo PHP_EOL.'CURRENT: '.current($a).'; RESET: '.reset($a).PHP_EOL;
Output for git.master, git.master_jit, rfc.property-hooks
CURRENT: three; RESET: three array ( 3 => 'three', 7 => 'seven', 2 => 'two', ) CURRENT: three; RESET: three array ( 0 => 'seven', 1 => 'three', 2 => 'two', ) CURRENT: seven; RESET: seven array ( 1 => 'three', 2 => 'two', ) CURRENT: three; RESET: three

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