fork download
  1. <?php
  2.  
  3. $a = new FileSystemIterator(__DIR__);
  4. $b = new ArrayObject(['a' => 1]);
  5. $c = new SplStack;
  6.  
  7.  
  8. var_dump($a instanceof Traversable);
  9. var_dump($b instanceof Traversable);
  10. var_dump($c instanceof Traversable);
Success #stdin #stdout 0.01s 52488KB
stdin
Standard input is empty
stdout
bool(true)
bool(true)
bool(true)