3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $profiles = array('1', '2', 'patient'); if (in_array('patient', $profiles) ){ echo 'yesy'; unset($profiles['patient']); } var_dump($profiles);
Output for 4.3.0 - 7.1.0
yesyarray(3) { [0]=> string(1) "1" [1]=> string(1) "2" [2]=> string(7) "patient" }