3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $myArray = array( 'hello' => 'world!', ); function clearArray() { global $myArray; unset($myArray); } var_dump($myArray); clearArray(); var_dump($myArray);
Output for 4.3.0 - 7.1.0
array(1) { ["hello"]=> string(6) "world!" } array(1) { ["hello"]=> string(6) "world!" }