3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit, rfc.property-hooks
Array ( [fr] => Angleterre [en] => lolwut ) lolwut

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
38.64 ms | 401 KiB | 8 Q