3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = 6; $a = function() use ($var){ echo $var; }; $reflected = new \ReflectionFunction($a); var_export($reflected->getStaticVariables());

preferences:
48.99 ms | 407 KiB | 5 Q