3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row['orders'] = '{"email":"tst@gmail.com","name":"myname","phone":"+123123123"}'; // assoc array $row['country'] = '[{"id":"001","country":"english","code":"123123"}]'; // indexd array containing an assoc array $json_orders = json_decode($row['orders'], true); echo $json_orders['email']; echo "\n---\n"; $json_country = json_decode($row['country'], true); echo $json_country[0]['country'];
Output for git.master, git.master_jit, rfc.property-hooks
tst@gmail.com --- english

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