3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $volgArray[] = 'audi'; $volgArray[] = 'vw'; $volgArray[] = 'volvo'; print_r($volgArray); in_array($volgArray, 'vw');
based on SBIFH
Output for 5.6.38 - 7.3.0rc3
Array ( [0] => audi [1] => vw [2] => volvo ) Warning: in_array() expects parameter 2 to be array, string given in /in/uGfnt on line 8