3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __destruct() { echo new Exception(); } } function cleanWithNull($obj) { $obj = null; } function cleanOnExit($obj) { } function test() { cleanWithNull(new Foo); echo "\n\n"; cleanOnExit(new Foo); } test();

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
158.64 ms | 3446 KiB | 11 Q