3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = array(); for ($i=0; $i<10; $i++) { $arr[] = new stdClass(); } $it = new ArrayIterator($arr); $i = 1; foreach ($it as $obj) { $obj->test = $i; $i++; } var_dump(current($it));
Output for git.master, rfc.property-hooks, git.master_jit
Deprecated: current(): Calling current() on an object is deprecated in /in/JfnT3 on line 18 bool(false)

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:
44.94 ms | 2655 KiB | 4 Q