3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Some variables. $france = 'France'; $england = 'England'; // Set up keys of an array as pointers to the variables above. $storage = array(); $storage['fr'] = &$france; $storage['en'] = &$england; // Update the variable. $france = 'Angleterre'; $storage['en'] = 'lolwut'; // Updates the pointer map. print_r($storage); echo $england;
Output for 4.3.0 - 7.1.0
Array ( [fr] => Angleterre [en] => lolwut ) lolwut