<?php function f1(){ $x = 10; return function() use ($x){ $y = 12; return $x + $y; };}$temp = f1();echo $temp();
Standard input is empty
22
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!