3v4l.org

run code in 300+ PHP versions simultaneously
<?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 5.4.0 - 5.4.20
Parse error: syntax error, unexpected '"mod"' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in /in/hlpte on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /in/hlpte on line 4
Process exited with code 255.

preferences:
180.3 ms | 1395 KiB | 56 Q