<?php function f(&$x) { $x = 1;} function g($x) { $x = 2;} $x = 0;echo $x;f($x);echo $x;g($x);echo $x;
Standard input is empty
011
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!