3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Proxy { private readonly string $property; } $proxy = new Proxy; $closure = function () { $this->property = 'foo'; }; $closure2 = $closure->bindTo($proxy, 'Proxy'); $closure2(); var_dump($proxy);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
133.61 ms | 1340 KiB | 11 Q