1--TEST--
2Comparison of a recursive array throws a catchable error
3--FILE--
4<?php
5$a = [&$a];
6try {
7    $a === [[]];
8} catch (Error $e) {
9    echo $e->getMessage(), "\n";
10}
11try {
12    [[]] === $a;
13} catch (Error $e) {
14    echo $e->getMessage(), "\n";
15}
16var_dump($a === $a);
17?>
18--EXPECT--
19Nesting level too deep - recursive dependency?
20Nesting level too deep - recursive dependency?
21bool(true)
22