3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = explode('|', 'Foo Bar|123, Foo Lane|foo@bar.com|123-456-7890'); $keys = ['Name', 'Address' ,'Email', 'Phone']; $result = []; foreach ($data as $k => $v) { $result[] = $keys[$k] . ': ' . $v; } echo implode('<br />', $result);
Output for git.master, git.master_jit, rfc.property-hooks
Name: Foo Bar<br />Address: 123, Foo Lane<br />Email: foo@bar.com<br />Phone: 123-456-7890

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:
32.85 ms | 401 KiB | 8 Q