fork download
  1. <?php
  2. function greet($arg) { return "Hello $arg\n"; }
  3.  
  4. $greet = function($arg) { return "Greetings $arg\n"; };
  5.  
  6. echo $greet("Everyone");
  7. echo greet("World");
  8.  
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
Greetings Everyone
Hello World