3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = array('key' => null); var_dump(isset($data['key'])); // unsafe var_dump(array_key_exists('key', $data)); // better, but still unsafe var_dump(array_key_exists('key', $data) && $data['key']); // safe
based on l3utF
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.1.0
bool(false) bool(true) bool(false)
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/ANcab on line 5
Process exited with code 255.