3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server = $_SERVER['REMOTE_ADDR']; $rrs = file_get_contents("http://api.sypexgeo.net/json/".$server); $obj = json_decode($rrs); $country = $obj->country->name_ru; var_dump($obj);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vR1u0
function name:  (null)
number of ops:  19
compiled vars:  !0 = $server, !1 = $rrs, !2 = $obj, !3 = $country
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_R                      global              ~4      '_SERVER'
          1        FETCH_DIM_R                                      ~5      ~4, 'REMOTE_ADDR'
          2        ASSIGN                                                   !0, ~5
    4     3        INIT_FCALL                                               'file_get_contents'
          4        CONCAT                                           ~7      'http%3A%2F%2Fapi.sypexgeo.net%2Fjson%2F', !0
          5        SEND_VAL                                                 ~7
          6        DO_ICALL                                         $8      
          7        ASSIGN                                                   !1, $8
    5     8        INIT_FCALL                                               'json_decode'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $10     
         11        ASSIGN                                                   !2, $10
    6    12        FETCH_OBJ_R                                      ~12     !2, 'country'
         13        FETCH_OBJ_R                                      ~13     ~12, 'name_ru'
         14        ASSIGN                                                   !3, ~13
    7    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.33 ms | 1395 KiB | 19 Q