3v4l.org

run code in 300+ PHP versions simultaneously
<?php // simple example $bcast = ip2long("192.168.178.255"); $smask = ip2long("255.255.255.0"); $nmask = $bcast & $smask; echo long2ip($nmask); // Will give 192.168.178.0 ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u4Zfm
function name:  (null)
number of ops:  15
compiled vars:  !0 = $bcast, !1 = $smask, !2 = $nmask
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'ip2long'
          1        SEND_VAL                                                 '192.168.178.255'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        INIT_FCALL                                               'ip2long'
          5        SEND_VAL                                                 '255.255.255.0'
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    5     8        BW_AND                                           ~7      !0, !1
          9        ASSIGN                                                   !2, ~7
    6    10        INIT_FCALL                                               'long2ip'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                         $9      
         13        ECHO                                                     $9
    7    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.07 ms | 1394 KiB | 17 Q