3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( array('cid' => 123, 'detail' => array( 'sourceid' => '789', 'name' => 'haha', )), 'bduss' => 'abc' ); $tmp = &current($data)['detail']; var_dump($tmp);

preferences:
50.27 ms | 402 KiB | 5 Q