3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public $obj; } $obj = new Test(); $obj->obj = $obj; var_export($obj, true);
Output for 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.5 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.31, 8.2.0 - 8.2.27, 8.3.0 - 8.3.15, 8.4.1 - 8.4.2
Warning: var_export does not handle circular references in /in/p7h4h on line 9

preferences:
94.34 ms | 408 KiB | 5 Q