3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"1 filename.doc":{"name":"filename.doc","url":"https://example.com/filename.doc","file":"/var/www/example.com/filename.doc","type":"application/msword","size":50688}}'; $jsonArray = json_decode($json, true); foreach($jsonArray as $file=>$fileAttributes) { echo '<a href="'.$fileAttributes['url'].'">'.$fileAttributes['name'].'</a>'; }
Output for git.master, git.master_jit, rfc.property-hooks
<a href="https://example.com/filename.doc">filename.doc</a>

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:
129.18 ms | 405 KiB | 5 Q