3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<EOD function loadMap() { setTimeout("setMap(39.364016, 3.226783, 'Hotel Casa', 'icon.png', 'key')", 200)} EOD; $pos = strpos($str, "setMap(") + 7; //find position of setMap( $latlon = Substr($str, $pos, strpos($str, ", '")-$pos); // substring from setMap to `, '` List($lat, $lon) = explode(", ", $latlon); // explode the latlon to each variable. Echo $lat . " " . $lon;
Output for git.master, git.master_jit, rfc.property-hooks
39.364016 3.226783

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