3v4l.org

run code in 300+ PHP versions simultaneously
<?php $emails = array( 'wouter@foobar.nl', 'bas@iets.net', 'nienke@localhost', 'kees__@foo.com', '@bar.com', ); foreach ($emails as $email) { if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { echo "{$email} is ongeldig\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 13
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 13
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 12
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/pHGnQ
function name:  (null)
number of ops:  15
compiled vars:  !0 = $emails, !1 = $email
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   11     1      > FE_RESET_R                                       $3      !0, ->13
          2    > > FE_FETCH_R                                               $3, !1, ->13
   12     3    >   INIT_FCALL                                               'filter_var'
          4        SEND_VAR                                                 !1
          5        SEND_VAL                                                 274
          6        DO_ICALL                                         $4      
          7        BOOL_NOT                                         ~5      $4
          8      > JMPZ                                                     ~5, ->12
   13     9    >   NOP                                                      
         10        FAST_CONCAT                                      ~6      !1, '+is+ongeldig%0A'
         11        ECHO                                                     ~6
   11    12    > > JMP                                                      ->2
         13    >   FE_FREE                                                  $3
   15    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.24 ms | 1444 KiB | 14 Q