3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = array( 'foo', 'bar', 0, 'qux' ); var_dump( $list ); $var = 'julio'; $var2 = 'toto'; var_dump( in_array( $var, $list ) ); var_dump( in_array( $var2, $list ) ); var_dump( array_search( $var, $list ) );

preferences:
49.96 ms | 402 KiB | 5 Q