3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $sendResponseUrl = 'http://teboreza.ir/TIS/vt/view/read.php?Project'; $mmn='{"success":true,"result":[{"projectname":"alone","startdate":"","targetenddate":"","actualenddate":"","projectstatus":"","projecttype":"","linktoaccountscontacts":"","assigned_user_id":"19x1","project_no":"PROJ2","targetbudget":"","projecturl":"","projectpriority":"","progress":"","createdtime":"2017-08-07 06:13:45","modifiedtime":"2017-08-07 06:13:45","modifiedby":"19x1","description":"man nmitonam inkaro anjam nadam","id":"30x20"},{"projectname":"alone","startdate":"","targetenddate":"","actualenddate":"","projectstatus":"","projecttype":"","linktoaccountscontacts":"","assigned_user_id":"19x1","project_no":"PROJ3","targetbudget":"","projecturl":"","projectpriority":"","progress":"","createdtime":"2017-08-07 06:40:38","modifiedtime":"2017-08-07 06:40:38","modifiedby":"19x1","description":"man nmitonam inkaro anjam nadam","id":"30x22"},{"projectname":"alone","startdate":"","targetenddate":"","actualenddate":"","projectstatus":"","projecttype":"","linktoaccountscontacts":"","assigned_user_id":"19x1","project_no":"PROJ4","targetbudget":"","projecturl":"","projectpriority":"","progress":"","createdtime":"2017-08-07 06:41:07","modifiedtime":"2017-08-07 06:41:07","modifiedby":"19x1","description":"man nmitonam inkaro anjam nadam","id":"30x23"},{"projectname":"alone","startdate":"","targetenddate":"","actualenddate":"","projectstatus":"","projecttype":"","linktoaccountscontacts":"","assigned_user_id":"19x1","project_no":"PROJ5","targetbudget":"","projecturl":"","projectpriority":"","progress":"","createdtime":"2017-08-07 13:17:33","modifiedtime":"2017-08-07 13:17:33","modifiedby":"19x1","description":"man nmitonam inkaro anjam nadam","id":"30x57"}]}'; $a= json_decode($mmn,true); foreach($a as $row) { foreach($row['result'] as $k) { echo $k['projectname']; } }
based on XHgmf
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0rc3
Warning: Invalid argument supplied for foreach() in /in/ioUoi on line 9 Notice: Undefined index: result in /in/ioUoi on line 9 Warning: Invalid argument supplied for foreach() in /in/ioUoi on line 9
Output for hhvm-3.15.4
Warning: Invalid argument supplied for foreach() in /in/ioUoi on line 12 Notice: Undefined index: result in /in/ioUoi on line 9 Warning: Invalid argument supplied for foreach() in /in/ioUoi on line 12