Pimple, the simple DI container

Code
<?php

use Pimple\Container;

$container = new Container();

// create services
$container['array_object_param'] = [1,2,3,4];
$container['array_object'] = function ($container) {
    return new 
ArrayObject($container['array_object_param']);
};

// using service
$ao $container['array_object'];

foreach (
$ao as $element) {
    echo 
$element PHP_EOL;
}

Result
1
2
3
4
Used Versions
PHP 7.1, Zend 3.0, Symfony 3.2, Laravel 5.2, PHPUnit 5.6, Doctrine 2.6