3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Dumb { readonly int $unreliable; function __construct() { unset($this->unreliable); } function __get($key) { return random_int(0, 999); } } $rubbish = new Dumb; var_dump($rubbish->unreliable); var_dump($rubbish->unreliable);

preferences:
35.61 ms | 405 KiB | 5 Q