3v4l.org

run code in 300+ PHP versions simultaneously
<?php $m = [ 'foo' => 'aaa', 'bar' => 'bbb', 'baz' => 'ccc', ]; $v = 'bbb'; var_dump(in_array($v, $m, true)); $v = 'zzz'; var_dump(in_array($v, $m, true));

preferences:
54.89 ms | 408 KiB | 5 Q