3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<script> var latitude = <?php echo "'" . $latitude . "'" ?>; var longitude = <?php echo "'" . $longitude . "'" ?>; </script>
based on GnUfB
Output for 5.0.4 - 7.1.0
<script> var latitude = Notice: Undefined variable: latitude in /in/O8h2l on line 2 ''; var longitude = Notice: Undefined variable: longitude in /in/O8h2l on line 3 ''; </script>
Output for 4.3.0 - 5.0.3
<script> var latitude = Notice: Undefined variable: latitude in /in/O8h2l on line 2 ''; var longitude = Notice: Undefined variable: longitude in /in/O8h2l on line 3 ''; </script>