3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = <<<_JSON { "aaa": [ { "title": "xx", "description": "6" }, { "title": "tt", "description": "b" } ] } _JSON; $data = json_decode($json); $title = trim('xx'); $data->aaa = array_values(array_filter($data->aaa, function($item) use ($title) { return (bool) strcmp($item->title, $title); })); echo json_encode($data, JSON_PRETTY_PRINT);
Output for git.master_jit, git.master, rfc.property-hooks
{ "aaa": [ { "title": "tt", "description": "b" } ] }

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