{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/hhvm/issues/5420","labels_url":"https://api.github.com/repos/facebook/hhvm/issues/5420/labels{/name}","comments_url":"https://api.github.com/repos/facebook/hhvm/issues/5420/comments","events_url":"https://api.github.com/repos/facebook/hhvm/issues/5420/events","html_url":"https://github.com/facebook/hhvm/issues/5420","id":82355352,"number":5420,"title":"Result is not correct","user":{"login":"ihsanudin","id":7464920,"avatar_url":"https://avatars.githubusercontent.com/u/7464920?v=3","gravatar_id":"","url":"https://api.github.com/users/ihsanudin","html_url":"https://github.com/ihsanudin","followers_url":"https://api.github.com/users/ihsanudin/followers","following_url":"https://api.github.com/users/ihsanudin/following{/other_user}","gists_url":"https://api.github.com/users/ihsanudin/gists{/gist_id}","starred_url":"https://api.github.com/users/ihsanudin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihsanudin/subscriptions","organizations_url":"https://api.github.com/users/ihsanudin/orgs","repos_url":"https://api.github.com/users/ihsanudin/repos","events_url":"https://api.github.com/users/ihsanudin/events{/privacy}","received_events_url":"https://api.github.com/users/ihsanudin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-29T09:41:38Z","updated_at":"2015-05-29T09:45:55Z","closed_at":null,"body":"I try to create a simple script like this\r\n```php\r\n<?php\r\n$a = 0;\r\n\r\nfor ($i =1; $i <= 10000; $i++) {\r\n        $a += $i;\r\n}\r\n\r\necho $a;\r\n```\r\nand then run hhvm script.php\r\n\r\nthe result is not *10000* but *50005000*.\r\n\r\nLike have 2 worker to calculate that job but not merging the result"},"comment":{"url":"https://api.github.com/repos/facebook/hhvm/issues/comments/106760145","html_url":"https://github.com/facebook/hhvm/issues/5420#issuecomment-106760145","issue_url":"https://api.github.com/repos/facebook/hhvm/issues/5420","id":106760145,"user":{"login":"nikic","id":216080,"avatar_url":"https://avatars.githubusercontent.com/u/216080?v=3","gravatar_id":"","url":"https://api.github.com/users/nikic","html_url":"https://github.com/nikic","followers_url":"https://api.github.com/users/nikic/followers","following_url":"https://api.github.com/users/nikic/following{/other_user}","gists_url":"https://api.github.com/users/nikic/gists{/gist_id}","starred_url":"https://api.github.com/users/nikic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikic/subscriptions","organizations_url":"https://api.github.com/users/nikic/orgs","repos_url":"https://api.github.com/users/nikic/repos","events_url":"https://api.github.com/users/nikic/events{/privacy}","received_events_url":"https://api.github.com/users/nikic/received_events","type":"User","site_admin":false},"created_at":"2015-05-29T09:45:55Z","updated_at":"2015-05-29T09:45:55Z","body":"Huh? Isn't result 50005000 = 10000 * (10000 + 1) / 2 exactly what you'd expect?"}}