3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(-1); $x = 12; $y = &$x; $ar = ['a' => 1, 'b' => 2]; $z = &$ar['b']; var_dump($ar);
based on pKJaO
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc3
array(2) { ["a"]=> int(1) ["b"]=> &int(2) }