3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(filter_var('user@[IPv6:2001:db8:1ff::a0b:dbd0]', FILTER_VALIDATE_EMAIL)); var_dump(filter_var('"much.more unusual"@example.com', FILTER_VALIDATE_EMAIL)); var_dump(filter_var('foo+bar@baz.com', FILTER_VALIDATE_EMAIL)); var_dump(filter_var('foo <bar@baz.com>', FILTER_VALIDATE_EMAIL));
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/K9VEK
function name:  (null)
number of ops:  29
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   INIT_FCALL                                               'var_dump'
         1        INIT_FCALL                                               'filter_var'
         2        SEND_VAL                                                 'user%40%5BIPv6%3A2001%3Adb8%3A1ff%3A%3Aa0b%3Adbd0%5D'
         3        SEND_VAL                                                 274
         4        DO_ICALL                                         $0      
         5        SEND_VAR                                                 $0
         6        DO_ICALL                                                 
   4     7        INIT_FCALL                                               'var_dump'
         8        INIT_FCALL                                               'filter_var'
         9        SEND_VAL                                                 '%22much.more+unusual%22%40example.com'
        10        SEND_VAL                                                 274
        11        DO_ICALL                                         $2      
        12        SEND_VAR                                                 $2
        13        DO_ICALL                                                 
   5    14        INIT_FCALL                                               'var_dump'
        15        INIT_FCALL                                               'filter_var'
        16        SEND_VAL                                                 'foo%2Bbar%40baz.com'
        17        SEND_VAL                                                 274
        18        DO_ICALL                                         $4      
        19        SEND_VAR                                                 $4
        20        DO_ICALL                                                 
   6    21        INIT_FCALL                                               'var_dump'
        22        INIT_FCALL                                               'filter_var'
        23        SEND_VAL                                                 'foo+%3Cbar%40baz.com%3E'
        24        SEND_VAL                                                 274
        25        DO_ICALL                                         $6      
        26        SEND_VAR                                                 $6
        27        DO_ICALL                                                 
        28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0