3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Server_IP = $_SERVER['SERVER_ADDR']; $geo = unserialize(file_get_contents("http://www.geoplugin.net/php.gp?ip=$Server_IP")); $city = $geo["geoplugin_city"]; echo "City: ".$city."<br>";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lVhdo
function name:  (null)
number of ops:  18
compiled vars:  !0 = $Server_IP, !1 = $geo, !2 = $city
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_R                      global              ~3      '_SERVER'
          1        FETCH_DIM_R                                      ~4      ~3, 'SERVER_ADDR'
          2        ASSIGN                                                   !0, ~4
    3     3        INIT_FCALL                                               'unserialize'
          4        INIT_FCALL                                               'file_get_contents'
          5        NOP                                                      
          6        FAST_CONCAT                                      ~6      'http%3A%2F%2Fwww.geoplugin.net%2Fphp.gp%3Fip%3D', !0
          7        SEND_VAL                                                 ~6
          8        DO_ICALL                                         $7      
          9        SEND_VAR                                                 $7
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !1, $8
    4    12        FETCH_DIM_R                                      ~10     !1, 'geoplugin_city'
         13        ASSIGN                                                   !2, ~10
    5    14        CONCAT                                           ~12     'City%3A+', !2
         15        CONCAT                                           ~13     ~12, '%3Cbr%3E'
         16        ECHO                                                     ~13
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.66 ms | 1394 KiB | 17 Q