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.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Use of undefined constant xmlrpc - assumed 'xmlrpc' in /in/Iv5UY on line 3 Notice: Use of undefined constant username - assumed 'username' in /in/Iv5UY on line 4 Notice: Use of undefined constant password - assumed 'password' in /in/Iv5UY on line 5 Notice: Use of undefined constant categories - assumed 'categories' in /in/Iv5UY on line 6 Notice: Use of undefined constant xmlrpc - assumed 'xmlrpc' in /in/Iv5UY on line 10 Notice: Use of undefined constant username - assumed 'username' in /in/Iv5UY on line 11 Notice: Use of undefined constant password - assumed 'password' in /in/Iv5UY on line 12 Notice: Use of undefined constant categories - assumed 'categories' in /in/Iv5UY on line 13 Notice: Use of undefined constant xmlrpc - assumed 'xmlrpc' in /in/Iv5UY on line 17 Notice: Use of undefined constant username - assumed 'username' in /in/Iv5UY on line 18 Notice: Use of undefined constant password - assumed 'password' in /in/Iv5UY on line 19 Notice: Use of undefined constant categories - assumed 'categories' in /in/Iv5UY on line 20 Notice: Use of undefined constant xmlrpc - assumed 'xmlrpc' in /in/Iv5UY on line 24 Notice: Use of undefined constant username - assumed 'username' in /in/Iv5UY on line 25 Notice: Use of undefined constant password - assumed 'password' in /in/Iv5UY on line 26 Notice: Use of undefined constant categories - assumed 'categories' in /in/Iv5UY on line 27 {"test.com":{"xmlrpc":"http:\/\/www.test.com\/xmlrpc.php","username":"admin","password":"123456","categories":["apple"]},"soarspirit.com":{"xmlrpc":"http:\/\/direct.soarspirit.com\/xmlrpc.php","username":"soarspirit","password":"87712579a","categories":["Baby","Beauty","Electronics","Home Improvement","Kitchen","Appliances"]},"smallappliancesreviews.com":{"xmlrpc":"http:\/\/direct.smallappliancesreviews.com\/xmlrpc.php","username":"jesselee","password":"lijinsong123","categories":["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.com":{"xmlrpc":"http:\/\/direct.majorappliancesreviews.com\/xmlrpc.php","username":"jesselee","password":"lijinsong123","categories":["Air Conditioner","Cooking Range","Dishwasher","Microwave","Rang Hood","Refrigerator","TV","Washing Machine","Water Heater","Wine Cooler"]}}
Output for 5.0.0 - 5.1.6
Notice: Use of undefined constant xmlrpc - assumed 'xmlrpc' in /in/Iv5UY on line 3 Notice: Use of undefined constant username - assumed 'username' in /in/Iv5UY on line 4 Notice: Use of undefined constant password - assumed 'password' in /in/Iv5UY on line 5 Notice: Use of undefined constant categories - assumed 'categories' in /in/Iv5UY on line 6 Notice: Use of undefined constant xmlrpc - assumed 'xmlrpc' in /in/Iv5UY on line 10 Notice: Use of undefined constant username - assumed 'username' in /in/Iv5UY on line 11 Notice: Use of undefined constant password - assumed 'password' in /in/Iv5UY on line 12 Notice: Use of undefined constant categories - assumed 'categories' in /in/Iv5UY on line 13 Notice: Use of undefined constant xmlrpc - assumed 'xmlrpc' in /in/Iv5UY on line 17 Notice: Use of undefined constant username - assumed 'username' in /in/Iv5UY on line 18 Notice: Use of undefined constant password - assumed 'password' in /in/Iv5UY on line 19 Notice: Use of undefined constant categories - assumed 'categories' in /in/Iv5UY on line 20 Notice: Use of undefined constant xmlrpc - assumed 'xmlrpc' in /in/Iv5UY on line 24 Notice: Use of undefined constant username - assumed 'username' in /in/Iv5UY on line 25 Notice: Use of undefined constant password - assumed 'password' in /in/Iv5UY on line 26 Notice: Use of undefined constant categories - assumed 'categories' in /in/Iv5UY on line 27 Fatal error: Call to undefined function json_encode() in /in/Iv5UY on line 33
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Notice: Use of undefined constant xmlrpc - assumed 'xmlrpc' in /in/Iv5UY on line 3 Notice: Use of undefined constant username - assumed 'username' in /in/Iv5UY on line 4 Notice: Use of undefined constant password - assumed 'password' in /in/Iv5UY on line 5 Notice: Use of undefined constant categories - assumed 'categories' in /in/Iv5UY on line 6 Notice: Use of undefined constant xmlrpc - assumed 'xmlrpc' in /in/Iv5UY on line 10 Notice: Use of undefined constant username - assumed 'username' in /in/Iv5UY on line 11 Notice: Use of undefined constant password - assumed 'password' in /in/Iv5UY on line 12 Notice: Use of undefined constant categories - assumed 'categories' in /in/Iv5UY on line 13 Notice: Use of undefined constant xmlrpc - assumed 'xmlrpc' in /in/Iv5UY on line 17 Notice: Use of undefined constant username - assumed 'username' in /in/Iv5UY on line 18 Notice: Use of undefined constant password - assumed 'password' in /in/Iv5UY on line 19 Notice: Use of undefined constant categories - assumed 'categories' in /in/Iv5UY on line 20 Notice: Use of undefined constant xmlrpc - assumed 'xmlrpc' in /in/Iv5UY on line 24 Notice: Use of undefined constant username - assumed 'username' in /in/Iv5UY on line 25 Notice: Use of undefined constant password - assumed 'password' in /in/Iv5UY on line 26 Notice: Use of undefined constant categories - assumed 'categories' in /in/Iv5UY on line 27 Fatal error: Call to undefined function: json_encode() in /in/Iv5UY on line 33
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: Use of undefined constant xmlrpc - assumed 'xmlrpc' in /in/Iv5UY on line 3 Notice: Use of undefined constant username - assumed 'username' in /in/Iv5UY on line 4 Notice: Use of undefined constant password - assumed 'password' in /in/Iv5UY on line 5 Notice: Use of undefined constant categories - assumed 'categories' in /in/Iv5UY on line 6 Notice: Use of undefined constant xmlrpc - assumed 'xmlrpc' in /in/Iv5UY on line 10 Notice: Use of undefined constant username - assumed 'username' in /in/Iv5UY on line 11 Notice: Use of undefined constant password - assumed 'password' in /in/Iv5UY on line 12 Notice: Use of undefined constant categories - assumed 'categories' in /in/Iv5UY on line 13 Notice: Use of undefined constant xmlrpc - assumed 'xmlrpc' in /in/Iv5UY on line 17 Notice: Use of undefined constant username - assumed 'username' in /in/Iv5UY on line 18 Notice: Use of undefined constant password - assumed 'password' in /in/Iv5UY on line 19 Notice: Use of undefined constant categories - assumed 'categories' in /in/Iv5UY on line 20 Notice: Use of undefined constant xmlrpc - assumed 'xmlrpc' in /in/Iv5UY on line 24 Notice: Use of undefined constant username - assumed 'username' in /in/Iv5UY on line 25 Notice: Use of undefined constant password - assumed 'password' in /in/Iv5UY on line 26 Notice: Use of undefined constant categories - assumed 'categories' in /in/Iv5UY on line 27 Fatal error: Call to undefined function: json_encode() in /in/Iv5UY on line 33
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant xmlrpc - assumed 'xmlrpc' in /in/Iv5UY on line 3 Notice: Use of undefined constant username - assumed 'username' in /in/Iv5UY on line 4 Notice: Use of undefined constant password - assumed 'password' in /in/Iv5UY on line 5 Notice: Use of undefined constant categories - assumed 'categories' in /in/Iv5UY on line 6 Notice: Use of undefined constant xmlrpc - assumed 'xmlrpc' in /in/Iv5UY on line 10 Notice: Use of undefined constant username - assumed 'username' in /in/Iv5UY on line 11 Notice: Use of undefined constant password - assumed 'password' in /in/Iv5UY on line 12 Notice: Use of undefined constant categories - assumed 'categories' in /in/Iv5UY on line 13 Notice: Use of undefined constant xmlrpc - assumed 'xmlrpc' in /in/Iv5UY on line 17 Notice: Use of undefined constant username - assumed 'username' in /in/Iv5UY on line 18 Notice: Use of undefined constant password - assumed 'password' in /in/Iv5UY on line 19 Notice: Use of undefined constant categories - assumed 'categories' in /in/Iv5UY on line 20 Notice: Use of undefined constant xmlrpc - assumed 'xmlrpc' in /in/Iv5UY on line 24 Notice: Use of undefined constant username - assumed 'username' in /in/Iv5UY on line 25 Notice: Use of undefined constant password - assumed 'password' in /in/Iv5UY on line 26 Notice: Use of undefined constant categories - assumed 'categories' in /in/Iv5UY on line 27 Fatal error: Call to undefined function: json_encode() in /in/Iv5UY on line 33