3v4l.org

run code in 300+ PHP versions simultaneously
<?php $api_endpoint = "http://maps.googleapis.com/maps/api/geocode/json?address="; $request_uri = $api_endpoint . "Port d'Andratx&sensor=false"; $json = file_get_contents($request_uri); $map_array = json_decode($json); var_dump($map_array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/03cTG
function name:  (null)
number of ops:  15
compiled vars:  !0 = $api_endpoint, !1 = $request_uri, !2 = $json, !3 = $map_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fmaps.googleapis.com%2Fmaps%2Fapi%2Fgeocode%2Fjson%3Faddress%3D'
    3     1        CONCAT                                           ~5      !0, 'Port+d%27Andratx%26sensor%3Dfalse'
          2        ASSIGN                                                   !1, ~5
    4     3        INIT_FCALL                                               'file_get_contents'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !2, $7
    5     7        INIT_FCALL                                               'json_decode'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                         $9      
         10        ASSIGN                                                   !3, $9
    6    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !3
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.36 ms | 1394 KiB | 19 Q