3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $permissions = array( 'view_entry' => array( 'users' => array( ), 'groups' => array( ), 'inherit' => true ), 'edit_entry' => array( 'users' => array( ), 'groups' => array( 'LCTCS Admins' => true ), 'inherit' => false ), 'edit_perm' => array( 'users' => array( ), 'groups' => array( ), 'inherit' => false ), 'view_page' => array( 'users' => array( ), 'groups' => array( '*' => true ), 'inherit' => true ) ); echo serialize($permissions['view_entry']); echo serialize($permissions['edit_entry']); echo serialize($permissions['edit_perm']); echo serialize($permissions['view_page']);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
a:3:{s:5:"users";a:0:{}s:6:"groups";a:0:{}s:7:"inherit";b:1;}a:3:{s:5:"users";a:0:{}s:6:"groups";a:1:{s:12:"LCTCS Admins";b:1;}s:7:"inherit";b:0;}a:3:{s:5:"users";a:0:{}s:6:"groups";a:0:{}s:7:"inherit";b:0;}a:3:{s:5:"users";a:0:{}s:6:"groups";a:1:{s:1:"*";b:1;}s:7:"inherit";b:1;}