3v4l.org

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