3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $myArray = array( 'att' => array( 841 => 'on_time', 842 => 'not_time', 843 => 'not_time', ), 'entatt' => array( 841 => 'unexcused', 842 => 'unexcused', 843 => 'late', ), ); $result = $myArray['att'] + $myArray['entatt']; var_dump($result);
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
array(3) { [841]=> string(7) "on_time" [842]=> string(8) "not_time" [843]=> string(8) "not_time" }
Output for hhvm-3.10.0

Process exited with code 153.