3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array(1=>1, 2=>2, 10=>10, 20=>20, 30 => 30 , 40=>40); var_dump(isset($arr[100])); var_dump(in_array($arr[100]));
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
bool(false) Notice: Undefined offset: 100 in /in/tlrKC on line 4 Warning: in_array() expects at least 2 parameters, 1 given in /in/tlrKC on line 4 NULL
Output for hhvm-3.10.0 - 3.12.0
bool(false) Notice: Undefined index: 100 in /in/tlrKC on line 4 Warning: in_array() expects at least 2 parameters, 1 given in /in/tlrKC on line 4 NULL
Output for 4.3.0 - 5.2.17
bool(false) Notice: Undefined offset: 100 in /in/tlrKC on line 4 Warning: Wrong parameter count for in_array() in /in/tlrKC on line 4 NULL