3v4l.org

run code in 300+ PHP versions simultaneously
<?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 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught Error: Undefined constant "xmlrpc" in /in/Iv5UY:3 Stack trace: #0 {main} thrown in /in/Iv5UY on line 3
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: Use of undefined constant xmlrpc - assumed 'xmlrpc' (this will throw an Error in a future version of PHP) in /in/Iv5UY on line 3 Warning: Use of undefined constant username - assumed 'username' (this will throw an Error in a future version of PHP) in /in/Iv5UY on line 4 Warning: Use of undefined constant password - assumed 'password' (this will throw an Error in a future version of PHP) in /in/Iv5UY on line 5 Warning: Use of undefined constant categories - assumed 'categories' (this will throw an Error in a future version of PHP) in /in/Iv5UY on line 6 Warning: Use of undefined constant xmlrpc - assumed 'xmlrpc' (this will throw an Error in a future version of PHP) in /in/Iv5UY on line 10 Warning: Use of undefined constant username - assumed 'username' (this will throw an Error in a future version of PHP) in /in/Iv5UY on line 11 Warning: Use of undefined constant password - assumed 'password' (this will throw an Error in a future version of PHP) in /in/Iv5UY on line 12 Warning: Use of undefined constant categories - assumed 'categories' (this will throw an Error in a future version of PHP) in /in/Iv5UY on line 13 Warning: Use of undefined constant xmlrpc - assumed 'xmlrpc' (this will throw an Error in a future version of PHP) in /in/Iv5UY on line 17 Warning: Use of undefined constant username - assumed 'username' (this will throw an Error in a future version of PHP) in /in/Iv5UY on line 18 Warning: Use of undefined constant password - assumed 'password' (this will throw an Error in a future version of PHP) in /in/Iv5UY on line 19 Warning: Use of undefined constant categories - assumed 'categories' (this will throw an Error in a future version of PHP) in /in/Iv5UY on line 20 Warning: Use of undefined constant xmlrpc - assumed 'xmlrpc' (this will throw an Error in a future version of PHP) in /in/Iv5UY on line 24 Warning: Use of undefined constant username - assumed 'username' (this will throw an Error in a future version of PHP) in /in/Iv5UY on line 25 Warning: Use of undefined constant password - assumed 'password' (this will throw an Error in a future version of PHP) in /in/Iv5UY on line 26 Warning: Use of undefined constant categories - assumed 'categories' (this will throw an Error in a future version of PHP) 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.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.25
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.0.5, 5.1.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.3.11, 4.4.0 - 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

preferences:
267.03 ms | 404 KiB | 369 Q