fork download
  1. <?php
  2. echo gettype($var) . ' - |' . $var . '| - ';
  3. $var;
  4. echo gettype($var) . ' - |' . $var . '| - ';
  5. $var = '';
  6. echo gettype($var) . ' - |' . $var . '| - ';
  7. $var = 'teste';
  8. echo gettype($var) . ' - |' . $var . '| - ';
  9.  
  10. //https://pt.stackoverflow.com/q/247899/101
Success #stdin #stdout #stderr 0.01s 82880KB
stdin
Standard input is empty
stdout
NULL - || - NULL - || - string - || - string - |teste| - 
stderr
PHP Notice:  Undefined variable: var in /home/6wO3ck/prog.php on line 2
PHP Notice:  Undefined variable: var in /home/6wO3ck/prog.php on line 2
PHP Notice:  Undefined variable: var in /home/6wO3ck/prog.php on line 4
PHP Notice:  Undefined variable: var in /home/6wO3ck/prog.php on line 4