fork(2) download
  1. <?php
  2.  
  3. function foo(string $s) {}
  4. foo("wut");
  5.  
  6. ?>
Runtime error #stdin #stdout #stderr 0.01s 20568KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Catchable fatal error:  Argument 1 passed to foo() must be an instance of string, string given, called in /home/yCZVjw/prog.php on line 4 and defined in /home/yCZVjw/prog.php on line 3