3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email = "bart.reymenants@gmail.c"; //Note the .com missing echo "PHP Version: ".phpversion().'<br>'; if(filter_var($email, FILTER_VALIDATE_EMAIL)){ echo "no "; echo $email.'<br>'; var_dump(filter_var($email, FILTER_VALIDATE_EMAIL)); }else{ echo "nok"; var_dump(filter_var($email, FILTER_VALIDATE_EMAIL)); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 22
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/n7tma
function name:  (null)
number of ops:  31
compiled vars:  !0 = $email
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'bart.reymenants%40gmail.c'
    3     1        INIT_FCALL                                               'phpversion'
          2        DO_ICALL                                         $2      
          3        CONCAT                                           ~3      'PHP+Version%3A+', $2
          4        CONCAT                                           ~4      ~3, '%3Cbr%3E'
          5        ECHO                                                     ~4
    4     6        INIT_FCALL                                               'filter_var'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 274
          9        DO_ICALL                                         $5      
         10      > JMPZ                                                     $5, ->22
    6    11    >   ECHO                                                     'no+'
    7    12        CONCAT                                           ~6      !0, '%3Cbr%3E'
         13        ECHO                                                     ~6
    8    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'filter_var'
         16        SEND_VAR                                                 !0
         17        SEND_VAL                                                 274
         18        DO_ICALL                                         $7      
         19        SEND_VAR                                                 $7
         20        DO_ICALL                                                 
    4    21      > JMP                                                      ->30
   10    22    >   ECHO                                                     'nok'
   11    23        INIT_FCALL                                               'var_dump'
         24        INIT_FCALL                                               'filter_var'
         25        SEND_VAR                                                 !0
         26        SEND_VAL                                                 274
         27        DO_ICALL                                         $9      
         28        SEND_VAR                                                 $9
         29        DO_ICALL                                                 
   13    30    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.48 ms | 1462 KiB | 16 Q