3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $t = "yolo"; } $f = new Foo(); $f = (array) $f; var_dump($f["\0Foo\0t"]);

preferences:
24.99 ms | 404 KiB | 5 Q