3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Distances = array( "Berlin" => array("Berlin" => 0, "Moscow" => 1607.99, "Paris" => 876.96, "Prague" => 280.34, "Rome" => 1181.67), "Moscow" => array("Berlin" => 1607.99, "Moscow" => 0, "Paris" => 2484.92, "Prague" => 1664.04, "Rome" => 2374.26), "Paris" => array("Berlin" => 876.96, "Moscow" => 641.31, "Paris" => 0, "Prague" => 885.38, "Rome" => 1105.76), "Prague" => array("Berlin" => 280.34, "Moscow" => 1664.04, "Paris" => 885.38, "Prague" => 0, "Rome" => 922), "Rome" => array("Berlin" => 1181.67, "Moscow" => 2374.26, "Paris" => 1105.76, "Prague" => 922, "Rome" => 0) ); $_POST = array('start' => 'Paris', 'end' => 'Berlin'); echo $Distances[$_POST['start']][$_POST['end']] ?? 'Unknown'; if (isset($_POST['start'], $_POST['end'], $Distances[$_POST['start']][$_POST['end']])) { echo $Distances[$_POST['start']][$_POST['end']]; } else { echo "Unknown"; }
Output for git.master, git.master_jit, rfc.property-hooks
876.96876.96

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