3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ip = '192.168.0.1'; var_dump(filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_IPV6)); var_dump(!filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ipERf
function name:  (null)
number of ops:  19
compiled vars:  !0 = $ip
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '192.168.0.1'
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'filter_var'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 275
          5        SEND_VAL                                                 3145728
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'filter_var'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 275
         13        SEND_VAL                                                 12582912
         14        DO_ICALL                                         $4      
         15        BOOL_NOT                                         ~5      $4
         16        SEND_VAL                                                 ~5
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164 ms | 1394 KiB | 17 Q