3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $my_arr = ' [ { league_id: "3", league_name: "League "3", teams: [] }, { league_id: "2", league_name: "League 2", team: [ { name_of_team: "Brixton United", number_of_players: "28", homeground: "Brockewell Park", history: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. Praesent mauris. Fusce nec tellus sed augue semper porta. Mauris massa. Vestibulum lacinia arcu eget nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.", nextmatchtime: 1405046700 } ] }, { league_id: "1", league_name: "League 1", team: [ { name_of_team: "Croydon Crusaders", number_of_players: "26", homeground: "North End Road", history: "Curabitur sodales ligula in libero. Sed dignissim lacinia nunc. Curabitur tortor. Pellentesque nibh. Aenean quam. In scelerisque sem at dolor. Maecenas mattis. Sed convallis tristique sem. Proin ut ligula vel nunc egestas porttitor. Morbi lectus risus, iaculis vel, suscipit quis, luctus non, massa. Fusce ac turpis quis ligula lacinia aliquet. Mauris ipsum.", nextmatchtime: 1402458300 }, { name_of_team: "Streatham Skaters", number_of_players: "31", homeground: "Streatham Common", history: "Curabitur sit amet mauris. Morbi in dui quis est pulvinar ullamcorper. Nulla facilisi. Integer lacinia sollicitudin massa. Cras metus. Sed aliquet risus a tortor. Integer id quam. Morbi mi. Quisque nisl felis, venenatis tristique, dignissim in, ultrices sit amet, augue. Proin sodales libero eget ante. Nulla quam. Aenean laoreet. Vestibulum nisi lectus, commodo ac, facilisis ac, ultricies eu, pede. Ut orci risus, accumsan porttitor, cursus quis, aliquet eget, justo.", nextmatchtime: 1433990700 } ] } ]'; $ujson = json_decode($my_arr, true); print_r($ujson);
Output for 5.2.0, 5.2.9 - 7.1.0
Output for 5.2.1 - 5.2.8
[ { league_id: "3", league_name: "League "3", teams: [] }, { league_id: "2", league_name: "League 2", team: [ { name_of_team: "Brixton United", number_of_players: "28", homeground: "Brockewell Park", history: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. Praesent mauris. Fusce nec tellus sed augue semper porta. Mauris massa. Vestibulum lacinia arcu eget nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.", nextmatchtime: 1405046700 } ] }, { league_id: "1", league_name: "League 1", team: [ { name_of_team: "Croydon Crusaders", number_of_players: "26", homeground: "North End Road", history: "Curabitur sodales ligula in libero. Sed dignissim lacinia nunc. Curabitur tortor. Pellentesque nibh. Aenean quam. In scelerisque sem at dolor. Maecenas mattis. Sed convallis tristique sem. Proin ut ligula vel nunc egestas porttitor. Morbi lectus risus, iaculis vel, suscipit quis, luctus non, massa. Fusce ac turpis quis ligula lacinia aliquet. Mauris ipsum.", nextmatchtime: 1402458300 }, { name_of_team: "Streatham Skaters", number_of_players: "31", homeground: "Streatham Common", history: "Curabitur sit amet mauris. Morbi in dui quis est pulvinar ullamcorper. Nulla facilisi. Integer lacinia sollicitudin massa. Cras metus. Sed aliquet risus a tortor. Integer id quam. Morbi mi. Quisque nisl felis, venenatis tristique, dignissim in, ultrices sit amet, augue. Proin sodales libero eget ante. Nulla quam. Aenean laoreet. Vestibulum nisi lectus, commodo ac, facilisis ac, ultricies eu, pede. Ut orci risus, accumsan porttitor, cursus quis, aliquet eget, justo.", nextmatchtime: 1433990700 } ] } ]
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/KQPdq on line 46
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/KQPdq on line 46
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/KQPdq on line 46
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/KQPdq on line 46