3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new ArrayObject(['A' => 1,'B' => 2,'C' => 3]); var_dump($obj->getArrayCopy()); var_dump(get_object_vars($obj));

preferences:
15.08 ms | 405 KiB | 5 Q