3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<!DOCTYPE html> <html> <body> <?php $a1=(object) array("flagname"=>"LTV Under 50","b"=>"green"); $a2=(object) array("flagname"=>"blue","b"=>"yellow"); $a1 = array_merge((array)$a1,(array)$a2); print_r($a1); ?> </body> </html>
Output for 4.3.0 - 7.1.0
<!DOCTYPE html> <html> <body> Array ( [flagname] => blue [b] => yellow ) </body> </html>