3v4l.org

run code in 300+ PHP versions simultaneously
<?php $object = (object) [ 'id'=> 8586332, 'email' => 'hello@myemail.com', 'optInType' => 'Unknown', 'emailType' => 'Html', 'dataFields' => [ (object)['key' => 'FIRSTNAME', 'value' => 'Bill'], (object)['key' => 'FULLNAME', 'value' => 'Tom Jones'], (object)['key' => 'GENDER', 'value' => ''], (object)['key' => 'LASTNAME', 'value' => 'Jones'], (object)['key' => 'LASTSUBSCRIBED', 'value' => '2019-12-20T21:13:20.359947Z'], (object)['key' => 'POSTCODE', 'value' => ''], (object)['key' => 'THIS_KEY', 'value' => 'This Value'], ], 'status' => 'Subscribed' ]; $index = array_search('THIS_KEY', array_column($object->dataFields, 'key')); if ($index !== false) { echo $object->dataFields[$index]->value; }
Output for git.master, git.master_jit, rfc.property-hooks
This Value

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:
26.16 ms | 405 KiB | 5 Q