fork download
  1. <?php
  2.  
  3. // your code goes here
  4. $isTrue = true;
  5.  
  6. if ($isTrue) {
  7. printout();
  8. }
  9.  
  10. function printout() {
  11. echo "I'm printing from a function called before it was created!";
  12. }
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
I'm printing from a function called before it was created!