3v4l.org

run code in 500+ PHP versions simultaneously
<?php $ip = "::ffff:0:10.0.0.3"; if (!filter_var($ip, FILTER_VALIDATE_IP) === false) { echo("$ip is a valid IP address"); } else { echo("$ip is not a valid IP address"); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/534p6
function name:  (null)
number of ops:  16
compiled vars:  !0 = $ip
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%3A%3Affff%3A0%3A10.0.0.3'
    4     1        INIT_FCALL                                                   'filter_var'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     275
          4        DO_ICALL                                             $2      
          5        BOOL_NOT                                             ~3      $2
          6        TYPE_CHECK                                        4          ~3
          7      > JMPZ                                                         ~4, ->12
    5     8    >   NOP                                                          
          9        FAST_CONCAT                                          ~5      !0, '+is+a+valid+IP+address'
         10        ECHO                                                         ~5
    4    11      > JMP                                                          ->15
    7    12    >   NOP                                                          
         13        FAST_CONCAT                                          ~6      !0, '+is+not+a+valid+IP+address'
         14        ECHO                                                         ~6
    8    15    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.62 ms | 1776 KiB | 9 Q