3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $actualArray = array( user1 => array( 'name' => 'User1', 'age' => '25', 'lastLogin' => '2013-08-16' ), user1 => array( 'name' => 'User1', 'age' => '25', 'lastLogin' => '2013-08-10' ), user2 => array( 'name' => 'User2', 'age' => '35', 'lastLogin' => '2013-08-08' ), user1 => array( 'name' => 'User1', 'age' => '25', 'lastLogin' => '2013-07-10' ) );
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Use of undefined constant user1 - assumed 'user1' in /in/OovQM on line 3 Notice: Use of undefined constant user1 - assumed 'user1' in /in/OovQM on line 8 Notice: Use of undefined constant user2 - assumed 'user2' in /in/OovQM on line 13 Notice: Use of undefined constant user1 - assumed 'user1' in /in/OovQM on line 18