3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cur; $arr = array('apple', 'orange', 'banana', 'potato', 'cocos', 'lime'); var_dump(current($arr)); next($arr); next($arr); next($arr); next($arr); next($arr); $arr = array('apple1', 'orange1', 'banana1', 'potato1', 'cocos1', 'lime1'); unset($arr[key($arr)]); var_dump($arr);
Output for git.master, git.master_jit, rfc.property-hooks
string(5) "apple" array(5) { [1]=> string(7) "orange1" [2]=> string(7) "banana1" [3]=> string(7) "potato1" [4]=> string(6) "cocos1" [5]=> string(5) "lime1" }

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