3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('123' => '456'); $obj = (object)$arr; $arr = (array)$obj; var_dump($arr, $arr['123']); var_dump($obj, $obj->{'123'});

preferences:
40.54 ms | 402 KiB | 5 Q