3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url='http://maps.googleapis.com/maps/api/distancematrix/json?origins=19.1629924,72.83930190&destinations=19.1802370,72.8554149&sensor=false'; $contents = file_get_contents($url); $contents = utf8_encode($contents); $data=json_decode($contents); foreach ($data->id as $id) { echo $id; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 18
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/bW14q
function name:  (null)
number of ops:  20
compiled vars:  !0 = $url, !1 = $contents, !2 = $data, !3 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fmaps.googleapis.com%2Fmaps%2Fapi%2Fdistancematrix%2Fjson%3Forigins%3D19.1629924%2C72.83930190%26destinations%3D19.1802370%2C72.8554149%26sensor%3Dfalse'
    4     1        INIT_FCALL                                               'file_get_contents'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    5     5        INIT_FCALL                                               'utf8_encode'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !1, $7
    6     9        INIT_FCALL                                               'json_decode'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $9      
         12        ASSIGN                                                   !2, $9
    8    13        FETCH_OBJ_R                                      ~11     !2, 'id'
         14      > FE_RESET_R                                       $12     ~11, ->18
         15    > > FE_FETCH_R                                               $12, !3, ->18
   10    16    >   ECHO                                                     !3
    8    17      > JMP                                                      ->15
         18    >   FE_FREE                                                  $12
   12    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.03 ms | 1395 KiB | 19 Q