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', $ip); echo $lookup;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/idQvN
function name:  (null)
number of ops:  8
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        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    4     6        ECHO                                                     !1
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.39 ms | 1398 KiB | 15 Q