3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pivot = array_fill(0, 1, ['is_primary' => false]); $groups = array_combine([User\Group::CUSTOMER], $pivot); var_dump($pivot); var_dump($groups);