3v4l.org

run code in 300+ PHP versions simultaneously
<?php $property_service_labels = ['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 array key "MasterLocation" in /in/mbQJY on line 2 Warning: Trying to access array offset on value of type null in /in/mbQJY on line 2 Warning: foreach() argument must be of type array|object, null given in /in/mbQJY on line 3 Fatal error: Uncaught Error: Using $this when not in object context in /in/mbQJY:6 Stack trace: #0 {main} thrown in /in/mbQJY on line 6
Process exited with code 255.
Output for rfc.property-hooks
Warning: Undefined array key "MasterLocation" in /in/mbQJY on line 2 Warning: Trying to access array offset on null in /in/mbQJY on line 2 Warning: foreach() argument must be of type array|object, null given in /in/mbQJY on line 3 Fatal error: Uncaught Error: Using $this when not in object context in /in/mbQJY:6 Stack trace: #0 {main} thrown in /in/mbQJY 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:
39.43 ms | 401 KiB | 8 Q