3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ip = "117.212.155.134"; $lookup = sprintf('http://api.ipinfodb.com/v3/ip-city/?key=12354&ip=%s', urlencode($ip)); echo $lookup;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TZoLZ
function name:  (null)
number of ops:  11
compiled vars:  !0 = $ip, !1 = $lookup
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '117.212.155.134'
    3     1        INIT_FCALL                                               'sprintf'
          2        SEND_VAL                                                 'http%3A%2F%2Fapi.ipinfodb.com%2Fv3%2Fip-city%2F%3Fkey%3D12354%26ip%3D%25s'
          3        INIT_FCALL                                               'urlencode'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
    4     9        ECHO                                                     !1
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.62 ms | 1394 KiB | 17 Q