3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ip = "68.180.224.179"; $result = file_get_contents('http://ipinfo.io/' . $ip . '/json'); $ipInfo = json_decode($result, true); echo $ipInfo['country'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BnRRm
function name:  (null)
number of ops:  15
compiled vars:  !0 = $ip, !1 = $result, !2 = $ipInfo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '68.180.224.179'
    4     1        INIT_FCALL                                               'file_get_contents'
          2        CONCAT                                           ~4      'http%3A%2F%2Fipinfo.io%2F', !0
          3        CONCAT                                           ~5      ~4, '%2Fjson'
          4        SEND_VAL                                                 ~5
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !1, $6
    5     7        INIT_FCALL                                               'json_decode'
          8        SEND_VAR                                                 !1
          9        SEND_VAL                                                 <true>
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !2, $8
    7    12        FETCH_DIM_R                                      ~10     !2, 'country'
         13        ECHO                                                     ~10
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.64 ms | 1394 KiB | 17 Q