3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Node { /** @var Node */ public $previous; /** @var Node */ public $next; } $firstNode = new Node(); $firstNode->previous = $firstNode; $firstNode->next = $firstNode; $circularDoublyLinkedList = $firstNode; var_dump(gc_enabled()); for ($i = 0; $i < 160000; $i++) { $currentNode = $circularDoublyLinkedList; $nextNode = $circularDoublyLinkedList->next; $newNode = new Node(); $newNode->previous = $currentNode; $currentNode->next = $newNode; $newNode->next = $nextNode; $nextNode->previous = $newNode; $circularDoublyLinkedList = $nextNode; } var_dump('this line will not be reached');
Output for git.master, git.master_jit, rfc.property-hooks
bool(true) string(29) "this line will not be reached"

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