3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $zrob = function () { static $x=0; echo ++$x."\n"; }; $q = new SplQueue(); $q->setIteratorMode(SplDoublyLinkedList::IT_MODE_DELETE); $q->enqueue($zrob); $z = $q->dequeue(); $Z();
based on X7oAo
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: Z in /in/kMRCV on line 12 Fatal error: Uncaught Error: Function name must be a string in /in/kMRCV:12 Stack trace: #0 {main} thrown in /in/kMRCV on line 12
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Notice: Undefined variable: Z in /in/kMRCV on line 12 Fatal error: Function name must be a string in /in/kMRCV on line 12
Process exited with code 255.