3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $users = array( "admin" => "best3v3r", "mod" => "notbest3v3r" ); $count = count($users); foreach($users as $user => $pass) { echo "Users stored in array: ".$count." The names of those users are: ".$user.". "; }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
Users stored in array: 2 The names of those users are: admin. Users stored in array: 2 The names of those users are: mod.