3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $list = array( 'foo', 'bar', 0, 'qux' ); var_dump( $list ); $var = 'julio'; var_dump( in_array( $var, $list ) ); var_dump( in_array( 'julio', $list ) ); var_dump( array_search( $var, $list ) );
based on uUpu6
Output for 5.3.19 - 7.2.0
array(4) { [0]=> string(3) "foo" [1]=> string(3) "bar" [2]=> int(0) [3]=> string(3) "qux" } bool(true) bool(true) int(2)