{"action":"created","issue":{"url":"https://api.github.com/repos/kamilsk/HowItWorks/issues/17","labels_url":"https://api.github.com/repos/kamilsk/HowItWorks/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/kamilsk/HowItWorks/issues/17/comments","events_url":"https://api.github.com/repos/kamilsk/HowItWorks/issues/17/events","html_url":"https://github.com/kamilsk/HowItWorks/issues/17","id":110449960,"number":17,"title":"isset vs property_exists","user":{"login":"kamilsk","id":1165416,"avatar_url":"https://avatars.githubusercontent.com/u/1165416?v=3","gravatar_id":"","url":"https://api.github.com/users/kamilsk","html_url":"https://github.com/kamilsk","followers_url":"https://api.github.com/users/kamilsk/followers","following_url":"https://api.github.com/users/kamilsk/following{/other_user}","gists_url":"https://api.github.com/users/kamilsk/gists{/gist_id}","starred_url":"https://api.github.com/users/kamilsk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamilsk/subscriptions","organizations_url":"https://api.github.com/users/kamilsk/orgs","repos_url":"https://api.github.com/users/kamilsk/repos","events_url":"https://api.github.com/users/kamilsk/events{/privacy}","received_events_url":"https://api.github.com/users/kamilsk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"kamilsk","id":1165416,"avatar_url":"https://avatars.githubusercontent.com/u/1165416?v=3","gravatar_id":"","url":"https://api.github.com/users/kamilsk","html_url":"https://github.com/kamilsk","followers_url":"https://api.github.com/users/kamilsk/followers","following_url":"https://api.github.com/users/kamilsk/following{/other_user}","gists_url":"https://api.github.com/users/kamilsk/gists{/gist_id}","starred_url":"https://api.github.com/users/kamilsk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamilsk/subscriptions","organizations_url":"https://api.github.com/users/kamilsk/orgs","repos_url":"https://api.github.com/users/kamilsk/repos","events_url":"https://api.github.com/users/kamilsk/events{/privacy}","received_events_url":"https://api.github.com/users/kamilsk/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-10-08T13:22:35Z","updated_at":"2015-10-08T13:23:22Z","closed_at":null,"body":"показать __isset"},"comment":{"url":"https://api.github.com/repos/kamilsk/HowItWorks/issues/comments/146543924","html_url":"https://github.com/kamilsk/HowItWorks/issues/17#issuecomment-146543924","issue_url":"https://api.github.com/repos/kamilsk/HowItWorks/issues/17","id":146543924,"user":{"login":"kamilsk","id":1165416,"avatar_url":"https://avatars.githubusercontent.com/u/1165416?v=3","gravatar_id":"","url":"https://api.github.com/users/kamilsk","html_url":"https://github.com/kamilsk","followers_url":"https://api.github.com/users/kamilsk/followers","following_url":"https://api.github.com/users/kamilsk/following{/other_user}","gists_url":"https://api.github.com/users/kamilsk/gists{/gist_id}","starred_url":"https://api.github.com/users/kamilsk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamilsk/subscriptions","organizations_url":"https://api.github.com/users/kamilsk/orgs","repos_url":"https://api.github.com/users/kamilsk/repos","events_url":"https://api.github.com/users/kamilsk/events{/privacy}","received_events_url":"https://api.github.com/users/kamilsk/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T13:23:22Z","updated_at":"2015-10-08T13:23:22Z","body":"```php\r\n<?php\r\nclass A { public function __isset($name) { return true; } }\r\n$a = new A();\r\nvar_dump(isset($a->a));\r\nvar_dump(property_exists($a, 'a'));\r\niMac-Kamil:~ kamil$ cat test.php\r\n<?php\r\nclass A { public $a; }\r\n$a = new A();\r\n$s = microtime(true);\r\nfor ($i = 0; $i < pow(10,6); $i++) { property_exists($a, 'a'); }\r\n$e = microtime(true);\r\n$r[] = $e - $s;\r\n$s = microtime(true);\r\nfor ($i = 0; $i < pow(10,6); $i++) { isset($a->a); }\r\n$e = microtime(true);\r\n$r[] = $e - $s;\r\nprint_r($r);\r\n```"}}