3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); $data = '<?xml version="1.0" encoding="UTF-8"?><result><status>0</status><error>FATAL_ERROR</error></result>'; if (((isset($data['result']['result']['status']) && $data['result']['result']['status']) || (isset($data['result']['result']['STATUS']) && $data['result']['result']['STATUS'])) ) { $response = $data['result']; } var_dump($response);
based on r5PJ4
Output for 5.4.0 - 7.2.0
Notice: Undefined variable: response in /in/GeFd6 on line 8 NULL
Output for 5.0.0 - 5.3.29
Fatal error: Cannot use string offset as an array in /in/GeFd6 on line 6
Process exited with code 255.
Output for 4.3.0 - 4.4.9
Notice: Undefined variable: response in /in/GeFd6 on line 8 NULL