3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var1 = 444; $var2 = 444; $test = function() use(&$var1, &$var2){ $var1 = $var1; // & not specified $var2_local = $var2; // & not specified $var1 = 333; $var2_local = 333; }; $test(); var_dump($var1); var_dump($var2);
Output for rfc.property-hooks, git.master, git.master_jit
int(333) int(444)

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:
54.1 ms | 1541 KiB | 4 Q