3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = '{ "normal_size": [ { "id": 1, "image": "MICMIMC30651-6.jpg", "url": "http://localhost:8000/images/product/preview/MICMIMC30651-6.jpg" }, { "id": 2, "image": "MICMIMC30651-61.jpg", "url": "http://localhost:8000/images/product/preview/MICMIMC30651-61.jpg" }, { "id": 3, "image": "MICMIMC30651-62.jpg", "url": "http://localhost:8000/images/product/preview/MICMIMC30651-62.jpg" }, { "id": 4, "image": "MICMIMC30651-63.jpg", "url": "http://localhost:8000/images/product/preview/MICMIMC30651-63.jpg" } ] }'; $output = json_encode(['image' => json_decode($data, true)]); echo $output;
Output for git.master, git.master_jit, rfc.property-hooks
{"image":{"normal_size":[{"id":1,"image":"MICMIMC30651-6.jpg","url":"http:\/\/localhost:8000\/images\/product\/preview\/MICMIMC30651-6.jpg"},{"id":2,"image":"MICMIMC30651-61.jpg","url":"http:\/\/localhost:8000\/images\/product\/preview\/MICMIMC30651-61.jpg"},{"id":3,"image":"MICMIMC30651-62.jpg","url":"http:\/\/localhost:8000\/images\/product\/preview\/MICMIMC30651-62.jpg"},{"id":4,"image":"MICMIMC30651-63.jpg","url":"http:\/\/localhost:8000\/images\/product\/preview\/MICMIMC30651-63.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:
27.27 ms | 406 KiB | 5 Q