3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ip2 = ip2long("127.0.0.1"); $high_ip = ip2long("128.0.0.0"); $low_ip = ip2long("126.0.0.1"); if ($ip2 <= $high_ip && $low_ip <= $ip2) { echo "in range"; } else { echo "no"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/00eL3
function name:  (null)
number of ops:  21
compiled vars:  !0 = $ip2, !1 = $high_ip, !2 = $low_ip
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'ip2long'
          1        SEND_VAL                                                 '127.0.0.1'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        INIT_FCALL                                               'ip2long'
          5        SEND_VAL                                                 '128.0.0.0'
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    5     8        INIT_FCALL                                               'ip2long'
          9        SEND_VAL                                                 '126.0.0.1'
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !2, $7
    6    12        IS_SMALLER_OR_EQUAL                              ~9      !0, !1
         13      > JMPZ_EX                                          ~9      ~9, ->16
         14    >   IS_SMALLER_OR_EQUAL                              ~10     !2, !0
         15        BOOL                                             ~9      ~10
         16    > > JMPZ                                                     ~9, ->19
    7    17    >   ECHO                                                     'in+range'
         18      > JMP                                                      ->20
   10    19    >   ECHO                                                     'no'
   11    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.26 ms | 1395 KiB | 15 Q