3v4l.org

run code in 300+ PHP versions simultaneously
<?php $reserved_ips = array( // not an exhaustive list '167772160' => 184549375, /* 10.0.0.0 - 10.255.255.255 */ '3232235520' => 3232301055, /* 192.168.0.0 - 192.168.255.255 */ '2130706432' => 2147483647, /* 127.0.0.0 - 127.255.255.255 */ '2851995648' => 2852061183, /* 169.254.0.0 - 169.254.255.255 */ '2886729728' => 2887778303, /* 172.16.0.0 - 172.31.255.255 */ '3758096384' => 4026531839, /* 224.0.0.0 - 239.255.255.255 */ ); $ip_long = sprintf('%u', ip2long('10.100.198.181')); echo $ip_long;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MPsjm
function name:  (null)
number of ops:  11
compiled vars:  !0 = $reserved_ips, !1 = $ip_long
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   11     1        INIT_FCALL                                               'sprintf'
          2        SEND_VAL                                                 '%25u'
          3        INIT_FCALL                                               'ip2long'
          4        SEND_VAL                                                 '10.100.198.181'
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
   12     9        ECHO                                                     !1
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.59 ms | 1394 KiB | 17 Q