3v4l.org

run code in 200+ PHP versions simultaneously
<?php $case = array('{"id":"job_201911","team_id":"","title":"Marketing Coordinator","country_id":"United States","city":"example","state":"CA","zip":"","department":"Marketing","description":"<div class=\"jd\">\n<p>Example, is looking for a talented and passionate individual to join our team. Based in our corporate office","minimum_salary":"0","maximum_salary":"0","notes":"","original_open_date":"2011-05-22","type":"Full Time","status":"Open","send_to_job_boards":"Yes","hiring_lead":"usr_20190404215334_SG07IDSTVXYD6LJJ","board_code":"jPmQtwgDAq","internal_code":"","questionnaire":"0"}', '[{"id":"job_201911","team_id":"","title":"Marketing Coordinator","country_id":"United States","city":"example","state":"CA","zip":"","department":"Marketing","description":"<div class=\"jd\">\n<p>Example, is looking for a talented and passionate individual to join our team. Based in our corporate office","minimum_salary":"0","maximum_salary":"0","notes":"","original_open_date":"2011-05-22","type":"Full Time","status":"Open","send_to_job_boards":"Yes","hiring_lead":"usr_20190404215334_SG07IDSTVXYD6LJJ","board_code":"jPmQtwgDAq","internal_code":"","questionnaire":"0"}, {"id":"job_201911","team_id":"","title":"Marketing Coordinator","country_id":"United States","city":"example","state":"CA","zip":"","department":"Marketing","description":"<div class=\"jd\">\n<p>Example, is looking for a talented and passionate individual to join our team. Based in our corporate office","minimum_salary":"0","maximum_salary":"0","notes":"","original_open_date":"2011-05-22","type":"Full Time","status":"Open","send_to_job_boards":"Yes","hiring_lead":"usr_20190404215334_SG07IDSTVXYD6LJJ","board_code":"jPmQtwgDAq","internal_code":"","questionnaire":"0"}]'); function parse_response($data) { $data = json_decode($data); foreach((is_array($data) ? $data : array($data)) as $obj) { var_dump($obj); } } parse_response($case[0]); parse_response($case[1]);
based on BBAsh
Output for 7.1.25 - 7.4.0
object(stdClass)#1 (20) { ["id"]=> string(10) "job_201911" ["team_id"]=> string(0) "" ["title"]=> string(21) "Marketing Coordinator" ["country_id"]=> string(13) "United States" ["city"]=> string(7) "example" ["state"]=> string(2) "CA" ["zip"]=> string(0) "" ["department"]=> string(9) "Marketing" ["description"]=> string(128) "<div class="jd"> <p>Example, is looking for a talented and passionate individual to join our team. Based in our corporate office" ["minimum_salary"]=> string(1) "0" ["maximum_salary"]=> string(1) "0" ["notes"]=> string(0) "" ["original_open_date"]=> string(10) "2011-05-22" ["type"]=> string(9) "Full Time" ["status"]=> string(4) "Open" ["send_to_job_boards"]=> string(3) "Yes" ["hiring_lead"]=> string(35) "usr_20190404215334_SG07IDSTVXYD6LJJ" ["board_code"]=> string(10) "jPmQtwgDAq" ["internal_code"]=> string(0) "" ["questionnaire"]=> string(1) "0" } object(stdClass)#1 (20) { ["id"]=> string(10) "job_201911" ["team_id"]=> string(0) "" ["title"]=> string(21) "Marketing Coordinator" ["country_id"]=> string(13) "United States" ["city"]=> string(7) "example" ["state"]=> string(2) "CA" ["zip"]=> string(0) "" ["department"]=> string(9) "Marketing" ["description"]=> string(128) "<div class="jd"> <p>Example, is looking for a talented and passionate individual to join our team. Based in our corporate office" ["minimum_salary"]=> string(1) "0" ["maximum_salary"]=> string(1) "0" ["notes"]=> string(0) "" ["original_open_date"]=> string(10) "2011-05-22" ["type"]=> string(9) "Full Time" ["status"]=> string(4) "Open" ["send_to_job_boards"]=> string(3) "Yes" ["hiring_lead"]=> string(35) "usr_20190404215334_SG07IDSTVXYD6LJJ" ["board_code"]=> string(10) "jPmQtwgDAq" ["internal_code"]=> string(0) "" ["questionnaire"]=> string(1) "0" } object(stdClass)#2 (20) { ["id"]=> string(10) "job_201911" ["team_id"]=> string(0) "" ["title"]=> string(21) "Marketing Coordinator" ["country_id"]=> string(13) "United States" ["city"]=> string(7) "example" ["state"]=> string(2) "CA" ["zip"]=> string(0) "" ["department"]=> string(9) "Marketing" ["description"]=> string(128) "<div class="jd"> <p>Example, is looking for a talented and passionate individual to join our team. Based in our corporate office" ["minimum_salary"]=> string(1) "0" ["maximum_salary"]=> string(1) "0" ["notes"]=> string(0) "" ["original_open_date"]=> string(10) "2011-05-22" ["type"]=> string(9) "Full Time" ["status"]=> string(4) "Open" ["send_to_job_boards"]=> string(3) "Yes" ["hiring_lead"]=> string(35) "usr_20190404215334_SG07IDSTVXYD6LJJ" ["board_code"]=> string(10) "jPmQtwgDAq" ["internal_code"]=> string(0) "" ["questionnaire"]=> string(1) "0" }