<?php
test();
function test(){
echo 'Test works';
}
//output: Test works
$closure = function(){
closure_test();
};
$closure();
function closure_test(){
echo 'Closure test works';
}
//expected output: Closure test works
//actual output: Fatal error: Call to undefined function closure_test()