3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ip = gethostbyname('yandex.ru'); $long = ip2long($ip); if ($long == -1 || $long === FALSE) { echo 'Invalid IP, please try again'; } else { echo $ip . "\n"; // 192.0.34.166 echo $long . "\n"; // -1073732954 printf("%u\n", ip2long($ip)); // 3221234342 } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/jiNqI
function name:  (null)
number of ops:  27
compiled vars:  !0 = $ip, !1 = $long
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'gethostbyname'
          1        SEND_VAL                                                 'yandex.ru'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    3     4        INIT_FCALL                                               'ip2long'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    5     8        IS_EQUAL                                         ~6      !1, -1
          9      > JMPNZ_EX                                         ~6      ~6, ->12
         10    >   TYPE_CHECK                                    4  ~7      !1
         11        BOOL                                             ~6      ~7
         12    > > JMPZ                                                     ~6, ->15
    6    13    >   ECHO                                                     'Invalid+IP%2C+please+try+again'
         14      > JMP                                                      ->26
    8    15    >   CONCAT                                           ~8      !0, '%0A'
         16        ECHO                                                     ~8
    9    17        CONCAT                                           ~9      !1, '%0A'
         18        ECHO                                                     ~9
   10    19        INIT_FCALL                                               'printf'
         20        SEND_VAL                                                 '%25u%0A'
         21        INIT_FCALL                                               'ip2long'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                         $10     
         24        SEND_VAR                                                 $10
         25        DO_ICALL                                                 
   12    26    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.3 ms | 1395 KiB | 19 Q