3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo '0x' . bin2hex(inet_pton('2607:400:0:1f3::1:6')), 16, 10;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tad1D
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'bin2hex'
          1        INIT_FCALL                                               'inet_pton'
          2        SEND_VAL                                                 '2607%3A400%3A0%3A1f3%3A%3A1%3A6'
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                         $1      
          6        CONCAT                                           ~2      '0x', $1
          7        ECHO                                                     ~2
          8        ECHO                                                     16
          9        ECHO                                                     10
    4    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.22 ms | 1394 KiB | 17 Q