3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<script> var latitude = <?php echo $latitude; ?> var longitude = <?php echo $longitude; ?> </script>
Output for 5.0.4 - 7.1.7
<script> var latitude = Notice: Undefined variable: latitude in /in/954qs on line 2 var longitude = Notice: Undefined variable: longitude in /in/954qs on line 3 </script>
Output for 4.3.0 - 5.0.3
<script> var latitude = Notice: Undefined variable: latitude in /in/954qs on line 2 var longitude = Notice: Undefined variable: longitude in /in/954qs on line 3 </script>