3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(filter_var('81.110.205.242', FILTER_VALIDATE_IP)); var_dump(filter_var('dead:beef::1', FILTER_VALIDATE_IP, FILTER_FLAG_IPV6));
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/IaANR
function name:  (null)
number of ops:  16
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   INIT_FCALL                                               'var_dump'
         1        INIT_FCALL                                               'filter_var'
         2        SEND_VAL                                                 '81.110.205.242'
         3        SEND_VAL                                                 275
         4        DO_ICALL                                         $0      
         5        SEND_VAR                                                 $0
         6        DO_ICALL                                                 
   3     7        INIT_FCALL                                               'var_dump'
         8        INIT_FCALL                                               'filter_var'
         9        SEND_VAL                                                 'dead%3Abeef%3A%3A1'
        10        SEND_VAL                                                 275
        11        SEND_VAL                                                 2097152
        12        DO_ICALL                                         $2      
        13        SEND_VAR                                                 $2
        14        DO_ICALL                                                 
        15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0