Output of the "Executing encapsulated PHP code with a closure" PHP snippet
Environment:
- Strangebuzz Snippet VM: 6.4.9
- PHP: 8.4
Code execution output:
before
With an anonymous function
after
before
With a closure assigned to a variable
after
before
With an arrow function
after