- Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.30, 5.6.7 - 5.6.14
- Parse error: syntax error, unexpected ';' in /in/cBKEj on line 4
Process exited with code 255.
<?php
$a = 1;
$b = fn($x; $a) => $x + $a; // note the semi-colon here, $a is explicitly imported
$c = $b(1); // 2