3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = []; $f[new stdClass] = 'a'; var_dump($f);

preferences:
46.51 ms | 402 KiB | 5 Q