3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?$array = array("key1" => "value1", "key2" => "value2"); print_r($array); unset($array['key1']); print_r($array); unset($array['key2']); print_r($array); ?>
Output for 5.4.34 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Array ( [key1] => value1 [key2] => value2 ) Array ( [key2] => value2 ) Array ( )
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 5.4.32
<?$array = array("key1" => "value1", "key2" => "value2"); print_r($array); unset($array['key1']); print_r($array); unset($array['key2']); print_r($array); ?>