3v4l.org

run code in 300+ PHP versions simultaneously
<?php $checker = new Spoofchecker(); $checker->setAllowedLocales('en_US'); var_dump($checker->isSuspicious('google.com')); // FALSE: only ASCII characters var_dump($checker->isSuspicious('Рaypal.com')); // TRUE // The first letter is from Cyrylic, not a regular latin "P"
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/33qXs
function name:  (null)
number of ops:  19
compiled vars:  !0 = $checker
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'Spoofchecker'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    3     3        INIT_METHOD_CALL                                         !0, 'setAllowedLocales'
          4        SEND_VAL_EX                                              'en_US'
          5        DO_FCALL                                      0          
    4     6        INIT_FCALL                                               'var_dump'
          7        INIT_METHOD_CALL                                         !0, 'isSuspicious'
          8        SEND_VAL_EX                                              'google.com'
          9        DO_FCALL                                      0  $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
    6    12        INIT_FCALL                                               'var_dump'
         13        INIT_METHOD_CALL                                         !0, 'isSuspicious'
         14        SEND_VAL_EX                                              '%D0%A0aypal.com'
         15        DO_FCALL                                      0  $7      
         16        SEND_VAR                                                 $7
         17        DO_ICALL                                                 
    7    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
195.24 ms | 1394 KiB | 15 Q