<?php function f($f) { $x = 1; $y = 2; var_dump($f());} f('get_defined_vars');
Standard input is empty
array(3) { ["f"]=> string(16) "get_defined_vars" ["x"]=> int(1) ["y"]=> int(2) }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!