3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'test'; $tab = array(); $tab['aaa'] = &$a; print_r((array) $tab);

preferences:
62.57 ms | 402 KiB | 5 Q