3v4l.org

run code in 300+ PHP versions simultaneously
<?php $in_addr = inet_pton('127.0.0.'); var_dump($in_addr); $in6_addr = inet_pton('::1'); var_dump($in6_addr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OXgvr
function name:  (null)
number of ops:  15
compiled vars:  !0 = $in_addr, !1 = $in6_addr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'inet_pton'
          1        SEND_VAL                                                 '127.0.0.'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    3     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'inet_pton'
          8        SEND_VAL                                                 '%3A%3A1'
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !1, $5
    6    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.49 ms | 1394 KiB | 17 Q