3v4l.org

run code in 300+ PHP versions simultaneously
<?php $coords = array( 'DFW' => array('lat'=>52.989, 'long'=>16.910), 'LAX' => array('lat'=>53.149, 'long'=>16.739), ); //Chodzież -Piła // Change 3959 to 6371 to get the distance in kilometers $distance = (6371 * acos( cos(deg2rad($coords['DFW']['lat'])) * cos(deg2rad($coords['LAX']['lat'])) * cos(deg2rad($coords['LAX']['long']) - deg2rad($coords['DFW']['long'])) + sin(deg2rad($coords['DFW']['lat'])) * sin(deg2rad($coords['LAX']['lat'])) ) ); var_dump($distance); ?> if($a < 3):echo 'mniejsze'; else:echo 'nie mniejsze'; endif; ?>
Output for git.master, git.master_jit, rfc.property-hooks
float(21.143608532890337) if($a < 3):echo 'mniejsze'; else:echo 'nie mniejsze'; endif; ?>

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