3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $callbacks = new SplStack(); // Setup with lots of callbacks for ($i = 0; $i < 10000; $i++) { $callbacks->push(function () use ($i) { return $i; }); } foreach ($callbacks as $callback) { echo $callback() .PHP_EOL; }