3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Node { public $next; public $previous; } $first = new Node(); $first->next = $first; $new = new Node(); $new->previous = $first; $new->next = $first; $first->previous = $new; var_dump($first == $new);
Output for 8.4.1 - 8.4.13
Fatal error: Uncaught Error: Nesting level too deep - recursive dependency? in /in/SttGY:16 Stack trace: #0 {main} thrown in /in/SttGY on line 16
Process exited with code 255.
Output for 8.2.0 - 8.2.29, 8.3.0 - 8.3.26
Fatal error: Nesting level too deep - recursive dependency? in /in/SttGY on line 16
Process exited with code 255.

preferences:
46.42 ms | 407 KiB | 5 Q