3v4l.org

run code in 300+ PHP versions simultaneously
<?php $response = array(); //$json = file_get_contents ('php://input'); $json = '[{"friends_with_accepted":"false","friends_with_synced":"false","friends_with_second_id":"5","friends_with_first_id":"6"}]'; $jsonArray = json_decode ($json, true); foreach ($jsonArray as $jsonObject) { $firstId = $jsonObject['friends_with_first_id']; $accepted = $jsonObject ['friends_with_accepted']; $secondId = $jsonObject ['friends_with_second_id']; $synced = $jsonObject ['friends_with_synced']; echo "accepted: ".$accepted."synced: ".$synced; }
Output for git.master, git.master_jit, rfc.property-hooks
accepted: falsesynced: false

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:
39.66 ms | 401 KiB | 8 Q