3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ 'one' => 1, 'forty-two' => 42, 'zero' => 0, 'one hundred eleven' => 111, ]; $i = new \ArrayIterator($a); var_dump($i); $i->arsort(); var_dump($i);
Output for git.master, git.master_jit, rfc.property-hooks
object(ArrayIterator)#1 (1) { ["storage":"ArrayIterator":private]=> array(4) { ["one"]=> int(1) ["forty-two"]=> int(42) ["zero"]=> int(0) ["one hundred eleven"]=> int(111) } } Fatal error: Uncaught Error: Call to undefined method ArrayIterator::arsort() in /in/kr0PR:14 Stack trace: #0 {main} thrown in /in/kr0PR on line 14
Process exited with code 255.

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