fork download
  1. <?php
  2. $x = function ($n) {
  3. echo "$n\n";
  4. }
  5.  
  6. $x(1); // выведет 1
  7. $x(2); // выведет 2
Runtime error #stdin #stdout #stderr 0.02s 24448KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Parse error:  syntax error, unexpected '$x' (T_VARIABLE) in /home/JS03wg/prog.php on line 6