3v4l.org

run code in 500+ 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 rfc.property-hooks, git.master, git.master_jit
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:
51.45 ms | 1972 KiB | 4 Q