3v4l.org

run code in 300+ PHP versions simultaneously
<?php $attachment = '[{ "contentType": "application/json", "content": { "type": "mytype", "body": [{ "type": "TextInfo", "text": "TEST TEXT", "wrap": true }] } }]'; // Add attachment string (JSON data) in an array $mydata = array( 'space' => "abc", 'markdown' => "**welcome**", 'attachment' => json_decode($attachment) ); // Turn array into one big JSON string $send_json = json_encode($mydata, JSON_PRETTY_PRINT); echo $send_json;
Output for git.master, git.master_jit, rfc.property-hooks
{ "space": "abc", "markdown": "**welcome**", "attachment": [ { "contentType": "application\/json", "content": { "type": "mytype", "body": [ { "type": "TextInfo", "text": "TEST TEXT", "wrap": true } ] } } ] }

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:
106.57 ms | 406 KiB | 5 Q