3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $property_service_labels = $customer['Location']['MasterLocation']['PropertyService']; foreach($property_service_labels as $psl) { $psl_label = $psl['service_type_label']; } $this->set( 'PropertyServiceLabel', $psl_label[0]['service_type_label']);
based on HQoLq
Output for 7.0.0 - 7.1.0
Notice: Undefined variable: customer in /in/7OEsb on line 2 Warning: Invalid argument supplied for foreach() in /in/7OEsb on line 3 Fatal error: Uncaught Error: Using $this when not in object context in /in/7OEsb:6 Stack trace: #0 {main} thrown in /in/7OEsb on line 6
Process exited with code 255.
Output for 5.0.4 - 5.6.28
Notice: Undefined variable: customer in /in/7OEsb on line 2 Warning: Invalid argument supplied for foreach() in /in/7OEsb on line 3 Fatal error: Using $this when not in object context in /in/7OEsb on line 6
Process exited with code 255.
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: customer in /in/7OEsb on line 2 Warning: Invalid argument supplied for foreach() in /in/7OEsb on line 3 Fatal error: Using $this when not in object context in /in/7OEsb on line 6
Process exited with code 255.
Output for 4.3.2 - 4.3.10, 4.4.0 - 4.4.9
Notice: Undefined variable: customer in /in/7OEsb on line 2 Warning: Invalid argument supplied for foreach() in /in/7OEsb on line 3 Fatal error: Call to a member function on a non-object in /in/7OEsb on line 6
Process exited with code 255.
Output for 4.3.11
Notice: Undefined variable: customer in /in/7OEsb on line 2 Fatal error: Call to a member function on a non-object in /in/7OEsb on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: customer in /in/7OEsb on line 2 Warning: Invalid argument supplied for foreach() in /in/7OEsb on line 3 Fatal error: Call to a member function on a non-object in /in/7OEsb on line 6