3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Node { public $next = null; // define public to allow simple test case writing private $id; public function __construct($id) { $this->id = $id; } public function setNext(Node $next) { $this->next = $next; } public function action() { if ($this->next) { $this->next->action(); } echo "action for {$this->id}" . PHP_EOL; } } // make a node list manually for testing $id = 0; $root = new Node(++ $id); $root->next = new Node(++ $id); $root->next = new Node(++ $id); $root->next->next = new Node(++ $id); $root->next->next->next = new Node(++ $id); $root->next->next->next->next = new Node(++ $id); $root->next->next->next->next->next = new Node(++ $id); $root->action();
Output for git.master, git.master_jit, rfc.property-hooks
action for 7 action for 6 action for 5 action for 4 action for 3 action for 1

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