3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bolValid = true; $strInput = 'hugh@yaho.com'; $arrBadDomains = array('@yahoo.com'); foreach ($arrBadDomains as $strBadDomain) { if (strlen($strInput) > strlen($strBadDomain)) { if (substr($strInput, (strlen($strInput) - strlen($strBadDomain))) == $strBadDomain) $bolValid = false; } } var_dump($bolValid);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 20
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 20
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 19
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 19
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 19
Branch analysis from position: 19
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/AHFne
function name:  (null)
number of ops:  25
compiled vars:  !0 = $bolValid, !1 = $strInput, !2 = $arrBadDomains, !3 = $strBadDomain
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <true>
    4     1        ASSIGN                                                   !1, 'hugh%40yaho.com'
    5     2        ASSIGN                                                   !2, <array>
    6     3      > FE_RESET_R                                       $7      !2, ->20
          4    > > FE_FETCH_R                                               $7, !3, ->20
    7     5    >   STRLEN                                           ~8      !1
          6        STRLEN                                           ~9      !3
          7        IS_SMALLER                                               ~9, ~8
          8      > JMPZ                                                     ~10, ->19
    8     9    >   INIT_FCALL                                               'substr'
         10        SEND_VAR                                                 !1
         11        STRLEN                                           ~11     !1
         12        STRLEN                                           ~12     !3
         13        SUB                                              ~13     ~11, ~12
         14        SEND_VAL                                                 ~13
         15        DO_ICALL                                         $14     
         16        IS_EQUAL                                                 !3, $14
         17      > JMPZ                                                     ~15, ->19
         18    >   ASSIGN                                                   !0, <false>
    6    19    > > JMP                                                      ->4
         20    >   FE_FREE                                                  $7
   11    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.89 ms | 1396 KiB | 17 Q