1--TEST--
2array_column() respects property visibility
3--FILE--
4<?php
5
6class Test {
7    private $prop;
8    public function __construct($value) {
9        $this->prop = $value;
10    }
11    public function __isset($name) {
12        return true;
13    }
14    public function __get($name) {
15        return "__get($this->prop)";
16    }
17}
18
19$arr = [new Test("foobar")];
20var_dump(array_column($arr, "prop"));
21
22?>
23--EXPECT--
24array(1) {
25  [0]=>
26  string(13) "__get(foobar)"
27}
28