fork(1) download
  1. <?php
  2. class Bar {
  3. }
  4. $blub = new Bar();
  5.  
  6. $vars = get_defined_vars();
  7. $vars = array_filter($vars, array_filter($vars, function($var) {
  8. return (is_object($var) && ($var instanceof Bar));
  9. });
  10.  
  11. foreach ($vars as $object) {
  12. echo 'There is one "Bar"!';
  13. }
Runtime error #stdin #stdout #stderr 0.01s 20592KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Parse error:  syntax error, unexpected ';' in /home/htfiSL/prog.php on line 9