<?php class Foo {} $arr = []; $f = new Foo; $arr[$f] = 1; var_dump($arr);
You have javascript disabled. You will not be able to edit any code.