3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = array(); $data['rows'][0]['elements'][0]['duration']['value'] = 15; $travelTime = 15 * 60; $distance = 8048; if (isset($data['rows'][0]['elements'][0]['duration']['value'])) { $travelTime = $data['rows'][0]['elements'][0]['duration']['value']; } if (isset($data['rows'][0]['elements'][0]['distance']['value'])) { $distance = $data['rows'][0]['elements'][0]['distance']['value']; } echo $travelTime; echo "<br>"; echo $distance;
Output for 4.3.0 - 7.2.0
15<br>8048