3v4l.org

run code in 300+ PHP versions simultaneously
<?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']);
Output for git.master, git.master_jit
Warning: Undefined variable $customer in /in/7OEsb on line 2 Warning: Trying to access array offset on value of type null in /in/7OEsb on line 2 Warning: Trying to access array offset on value of type null in /in/7OEsb on line 2 Warning: Trying to access array offset on value of type null in /in/7OEsb on line 2 Warning: foreach() argument must be of type array|object, null given 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 rfc.property-hooks
Warning: Undefined variable $customer in /in/7OEsb on line 2 Warning: Trying to access array offset on null in /in/7OEsb on line 2 Warning: Trying to access array offset on null in /in/7OEsb on line 2 Warning: Trying to access array offset on null in /in/7OEsb on line 2 Warning: foreach() argument must be of type array|object, null given 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.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
61.78 ms | 401 KiB | 8 Q