3v4l.org

run code in 500+ PHP versions simultaneously
<?php $accountdata = array( array("name" => "test1", "email" => "test1@test.com"), array("name" => "test2", "email" => "test2@test.com"), array("name" => "test3", "email" => "test3@test.com"), array("name" => "test4", "email" => "test4@test.com"), ); foreach ($accountdata as $row) { $data[$row["email"]] = [ 'name' => $row["name"], 'email' => $row["email"] ]; } echo json_encode($data, JSON_UNESCAPED_UNICODE);
Output for git.master, git.master_jit, rfc.property-hooks
{"test1@test.com":{"name":"test1","email":"test1@test.com"},"test2@test.com":{"name":"test2","email":"test2@test.com"},"test3@test.com":{"name":"test3","email":"test3@test.com"},"test4@test.com":{"name":"test4","email":"test4@test.com"}}

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:
50.49 ms | 1152 KiB | 4 Q