3v4l.org

run code in 300+ PHP versions simultaneously
<?php $actors = array("actors" => array( array("name" => "Brad Pitt", "description" => "William Bradley 'Brad' Pitt is an American actor and film producer. He has received a Golden Globe Award, a Screen Actors Guild Award, and three Academy Award nominations in acting categories", "dob" => "December 18, 1963", "country" => "United States", "height" => "1.80 m", "spouse" => "Jennifer Aniston", "children" => "Shiloh Nouvel Jolie-Pitt, Maddox Chivan Jolie-Pitt", "image" => "http://microblogging.wingnity.com/JSONParsingTutorial/brad.jpg" )) ); echo $out = json_encode($actors);
Output for git.master, git.master_jit, rfc.property-hooks
{"actors":[{"name":"Brad Pitt","description":"William Bradley 'Brad' Pitt is an American actor and film producer. He has received a Golden Globe Award, a Screen Actors Guild Award, and three Academy Award nominations in acting categories","dob":"December 18, 1963","country":"United States","height":"1.80 m","spouse":"Jennifer Aniston","children":"Shiloh Nouvel Jolie-Pitt, Maddox Chivan Jolie-Pitt","image":"http:\/\/microblogging.wingnity.com\/JSONParsingTutorial\/brad.jpg"}]}

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
135.33 ms | 406 KiB | 5 Q