3v4l.org

run code in 300+ PHP versions simultaneously
<!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 5.3.0 - 5.3.28, 5.4.0 - 5.4.29
Parse error: syntax error, unexpected ')' in /in/vj4cU on line 8
Process exited with code 255.

preferences:
202.51 ms | 1395 KiB | 66 Q