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 var_dump($var1, $var2_local); $var1 = 333; $var2_local = 333; var_dump($var1, $var2_local); }; $test(); var_dump($var1); var_dump($var2);
Output for git.master, git.master_jit
/bin/php-git-master: error while loading shared libraries: libonig.so.5: cannot open shared object file: No such file or directory
Process exited with code 127.
Output for rfc.property-hooks
int(444) int(444) int(333) int(333) 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:
92.63 ms | 1986 KiB | 4 Q