3v4l.org

run code in 300+ PHP versions simultaneously
<?php $long = sprintf('%u', ip2long("128.0.0.1")); echo long2ip($long), ", ", sprintf('%u', ip2long("128.0.0.0")), "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AlSmB
function name:  (null)
number of ops:  23
compiled vars:  !0 = $long
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'sprintf'
          1        SEND_VAL                                                 '%25u'
          2        INIT_FCALL                                               'ip2long'
          3        SEND_VAL                                                 '128.0.0.1'
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        DO_ICALL                                         $2      
          7        ASSIGN                                                   !0, $2
    3     8        INIT_FCALL                                               'long2ip'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $4      
         11        ECHO                                                     $4
         12        ECHO                                                     '%2C+'
         13        INIT_FCALL                                               'sprintf'
         14        SEND_VAL                                                 '%25u'
         15        INIT_FCALL                                               'ip2long'
         16        SEND_VAL                                                 '128.0.0.0'
         17        DO_ICALL                                         $5      
         18        SEND_VAR                                                 $5
         19        DO_ICALL                                         $6      
         20        ECHO                                                     $6
         21        ECHO                                                     '%0A'
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.97 ms | 1399 KiB | 19 Q