3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email_a = 'j+@e.c'; $email_b = 'bogus'; if (filter_var($email_a, FILTER_VALIDATE_EMAIL)) { echo "This ($email_a) email address is considered valid."; } if (filter_var($email_b, FILTER_VALIDATE_EMAIL)) { echo "This ($email_b) email address is considered valid."; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 20
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 11
filename:       /in/JFbrd
function name:  (null)
number of ops:  21
compiled vars:  !0 = $email_a, !1 = $email_b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'j%2B%40e.c'
    3     1        ASSIGN                                                   !1, 'bogus'
    5     2        INIT_FCALL                                               'filter_var'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 274
          5        DO_ICALL                                         $4      
          6      > JMPZ                                                     $4, ->11
    6     7    >   ROPE_INIT                                     3  ~6      'This+%28'
          8        ROPE_ADD                                      1  ~6      ~6, !0
          9        ROPE_END                                      2  ~5      ~6, '%29+email+address+is+considered+valid.'
         10        ECHO                                                     ~5
    8    11    >   INIT_FCALL                                               'filter_var'
         12        SEND_VAR                                                 !1
         13        SEND_VAL                                                 274
         14        DO_ICALL                                         $8      
         15      > JMPZ                                                     $8, ->20
    9    16    >   ROPE_INIT                                     3  ~10     'This+%28'
         17        ROPE_ADD                                      1  ~10     ~10, !1
         18        ROPE_END                                      2  ~9      ~10, '%29+email+address+is+considered+valid.'
         19        ECHO                                                     ~9
   10    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.93 ms | 1386 KiB | 15 Q