3v4l.org

run code in 300+ PHP versions simultaneously
<?php $address = array( "id" => 17570527.00, "seq" => 0, "line1" => "1 Heron Close", "line2" => "Bradwell", "post_town" => "Great Yarmouth", "county" => "Norfolk", "postcode" => "NR31 8LY", "mailsort" => "54136", "barcode" => "(NR318LY1AA)", "is_residential" => 1, "is_small_organisation" => 0, "is_large_organisation" => 0, ); $lines = array(); if (array_key_exists("line1", $address)) $lines[] = $address["line1"]; if (array_key_exists("line2", $address)) $lines[] = $address["line2"]; if (array_key_exists("line3", $address)) $lines[] = $address["line3"]; if (array_key_exists("line4", $address)) $lines[] = $address["line4"]; if (array_key_exists("line4", $address)) $lines[] = $address["line5"]; echo implode("\n", $lines);
Output for git.master, git.master_jit, rfc.property-hooks
1 Heron Close Bradwell

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