3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isValidEmail($email){ return filter_var($email, FILTER_VALIDATE_EMAIL); } $test = "test"; echo $test . " : " . isValidEmail($test); $test = "test'@gmail"; echo $test . " : " . isValidEmail($test); $test = "test@gamil.com"; echo $test . " : " . isValidEmail($test);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FYcJu
function name:  (null)
number of ops:  22
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 'test'
    9     1        CONCAT                                           ~2      !0, '+%3A+'
          2        INIT_FCALL                                               'isvalidemail'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0  $3      
          5        CONCAT                                           ~4      ~2, $3
          6        ECHO                                                     ~4
   11     7        ASSIGN                                                   !0, 'test%27%40gmail'
   13     8        CONCAT                                           ~6      !0, '+%3A+'
          9        INIT_FCALL                                               'isvalidemail'
         10        SEND_VAR                                                 !0
         11        DO_FCALL                                      0  $7      
         12        CONCAT                                           ~8      ~6, $7
         13        ECHO                                                     ~8
   15    14        ASSIGN                                                   !0, 'test%40gamil.com'
   17    15        CONCAT                                           ~10     !0, '+%3A+'
         16        INIT_FCALL                                               'isvalidemail'
         17        SEND_VAR                                                 !0
         18        DO_FCALL                                      0  $11     
         19        CONCAT                                           ~12     ~10, $11
         20        ECHO                                                     ~12
         21      > RETURN                                                   1

Function isvalidemail:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FYcJu
function name:  isValidEmail
number of ops:  7
compiled vars:  !0 = $email
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'filter_var'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 274
          4        DO_ICALL                                         $1      
          5      > RETURN                                                   $1
    5     6*     > RETURN                                                   null

End of function isvalidemail

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.41 ms | 1399 KiB | 18 Q