3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getHostIp($host) { $ip = gethostbynamel($host); if ($ip == $host) { return false; } return $ip; } var_dump(getHostIp('homeserver.djekl.co.uk'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k9C2A
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'gethostip'
          2        SEND_VAL                                                 'homeserver.djekl.co.uk'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function gethostip:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k9C2A
function name:  getHostIp
number of ops:  10
compiled vars:  !0 = $host, !1 = $ip
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'gethostbynamel'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !1, $2
    6     5        IS_EQUAL                                                 !1, !0
          6      > JMPZ                                                     ~4, ->8
    7     7    > > RETURN                                                   <false>
   10     8    > > RETURN                                                   !1
   11     9*     > RETURN                                                   null

End of function gethostip

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.71 ms | 1397 KiB | 18 Q