3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $soarspirit = array( xmlrpc:'http://direct.soarspirit.com/xmlrpc.php', username:'soarspirit', password:'87712579a', categories:array('Baby','Beauty','Electronics','Home Improvement','Kitchen','Appliances') ); $smallappliancesreviews = array( xmlrpc: 'http://direct.smallappliancesreviews.com/xmlrpc.php', username: 'jesselee', password: 'lijinsong123', categories:array('Air Purifier','Blender','Bread Maker','Coffee Maker','Dehumidifier','Electric Kettle','Fan','Food Processor','Humidifier','Ice Cream Maker','Juicer','Rice Cooker','Sausage Maker','Slow Cooker','Stand Mixer','Toaster','Vacuum Cleaner','Waffle Maker') ); $majorappliancesreviews = array( xmlrpc: 'http://direct.majorappliancesreviews.com/xmlrpc.php', username: 'jesselee', password: 'lijinsong123', categories: array('Air Conditioner','Cooking Range','Dishwasher','Microwave','Rang Hood','Refrigerator','TV','Washing Machine','Water Heater','Wine Cooler') ); $test = array( xmlrpc : 'http://www.test.com/xmlrpc.php', username: 'admin', password: '123456', categories: array('apple') ) $sites = array('test.com'=>$test,'soarspirit.com'=>$soarspirit,'smallappliancesreviews.com'=>$smallappliancesreviews,'majorappliancesreviews.com'=>$majorappliancesreviews); echo json_encode($sites);
Output for 5.3.0 - 5.4.22
Parse error: syntax error, unexpected ':', expecting ')' in /in/bpqsd on line 3
Process exited with code 255.