3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ip = "127.0.0.1"; $bin = inet_pton($ip); $str = inet_ntop($bin); echo "$str\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/05ZX2
function name:  (null)
number of ops:  13
compiled vars:  !0 = $ip, !1 = $bin, !2 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '127.0.0.1'
    5     1        INIT_FCALL                                               'inet_pton'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    7     5        INIT_FCALL                                               'inet_ntop'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !2, $6
    9     9        NOP                                                      
         10        FAST_CONCAT                                      ~8      !2, '%0A'
         11        ECHO                                                     ~8
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.22 ms | 934 KiB | 18 Q