- Output for 5.5.0 - 5.5.35, 5.6.0 - 5.6.21, 7.0.0 - 7.0.6
- Parse error: syntax error, unexpected 'use' (T_USE), expecting '{' in /in/33fr0 on line 4
Process exited with code 255.
<?php
function foo($x) {
function bar() use ($x) {
echo "this makes $x sense";
}
}
foo(5);