3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ ['name' => 'name', 'value' => 'Naomi'], ['name' => 'password', 'value' => 'test123456'], ['name' => 'email', 'value' => 'naomitest@gmail.com'], ['name' => 'code', 'value' => 'test123456@test123456'], ['name' => 'phone', 'value' => 423523545435] ]; $data = new ArrayObject( array_combine( array_column($data, 'name'), array_column($data, 'value') ) ); $data->setFlags(ArrayObject::STD_PROP_LIST|ArrayObject::ARRAY_AS_PROPS); echo $data->name; // Naomi echo $data['name']; // Naomi
Output for git.master, git.master_jit, rfc.property-hooks
NaomiNaomi

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