3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lat1=32.435355; $lng1=45.2894835; $lat2=32.434355; $lng2=45.2894835; $R = 6371000; $dLat = deg2rad($lat2-$lat1); $dLon = deg2rad($lng2-$lng1); $a = sin($dLat/2) *sin($dLat/2) + cos(deg2rad($lat1)) *cos(deg2rad($lat2)) *sin($dLon/2) *sin($dLon/2); $c = 2 * atan2(sqrt($a), sqrt(1-$a)); $d = $R * $c; echo $d; return $d; ?>
Output for git.master, git.master_jit, rfc.property-hooks
111.19492664509

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