3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = array( (object)array('thisAttribute' => null), (object)array('thisAttribute' => 'value'), (object)array('thisAttribute' => null) ); print_r($values); foreach($values as $value) { $myVal = $value->thisAttribute; if(isset($myVal)) print("FOUND"); if(!isset($myVal)) print("NOT FOUND"); }
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => stdClass Object ( [thisAttribute] => ) [1] => stdClass Object ( [thisAttribute] => value ) [2] => stdClass Object ( [thisAttribute] => ) ) NOT FOUNDFOUNDNOT FOUND

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:
41.97 ms | 402 KiB | 8 Q