3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x=10; $y=5; function scambia($a,$b){ $tmp = $a; $a = $b; $b = $tmp; } echo 'x vale '.$x; echo "/n"; scambia($x,$y); echo 'adesso x vale '.$x;
Output for 4.3.0 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
x vale 10/nadesso x vale 10