3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (defined('AF_INET6')) { echo "PHP was compiled without --disable-ipv6 option"; } else { echo "PHP was compiled with --disable-ipv6 option"; } $in_addr = inet_pton('127.0.0.1'); $in6_addr = inet_pton('::1'); echo "\n"; var_dump(bi0n2hex($in_addr)); var_dump(bin2hex($in6_addr)); echo "\n"; echo $in6_addr;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 4
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oq3aq
function name:  (null)
number of ops:  29
compiled vars:  !0 = $in_addr, !1 = $in6_addr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DEFINED                                                  'AF_INET6'
          1      > JMPZ                                                     ~2, ->4
    4     2    >   ECHO                                                     'PHP+was+compiled+without+--disable-ipv6+option'
          3      > JMP                                                      ->5
    6     4    >   ECHO                                                     'PHP+was+compiled+with+--disable-ipv6+option'
    9     5    >   INIT_FCALL                                               'inet_pton'
          6        SEND_VAL                                                 '127.0.0.1'
          7        DO_ICALL                                         $3      
          8        ASSIGN                                                   !0, $3
   11     9        INIT_FCALL                                               'inet_pton'
         10        SEND_VAL                                                 '%3A%3A1'
         11        DO_ICALL                                         $5      
         12        ASSIGN                                                   !1, $5
   13    13        ECHO                                                     '%0A'
   14    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL_BY_NAME                                       'bi0n2hex'
         16        SEND_VAR_EX                                              !0
         17        DO_FCALL                                      0  $7      
         18        SEND_VAR                                                 $7
         19        DO_ICALL                                                 
   15    20        INIT_FCALL                                               'var_dump'
         21        INIT_FCALL                                               'bin2hex'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                         $9      
         24        SEND_VAR                                                 $9
         25        DO_ICALL                                                 
   16    26        ECHO                                                     '%0A'
   17    27        ECHO                                                     !1
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.48 ms | 1396 KiB | 19 Q