3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array( 'string' => 'my string', 'empty string' => '', 'number' => 5, 'zero' => 0, 'null' => null, 'array' => array(1, 2, 3), 'empty_array' => array(), ); foreach ($arr as $key => $value) { echo $key, ' is ', (isset($arr[$key]) ? 'set' : 'not set'); }
Output for 4.3.0 - 7.1.0
string is setempty string is setnumber is setzero is setnull is not setarray is setempty_array is set