3v4l.org

run code in 300+ PHP versions simultaneously
<?php $checker = new Spoofchecker(); var_dump($checker->isSuspicious('google.com')); // true: only ASCII characters var_dump($checker->isSuspicious('Рaypal.com')); // false // 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/5HWQT
function name:  (null)
number of ops:  16
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
    4     3        INIT_FCALL                                               'var_dump'
          4        INIT_METHOD_CALL                                         !0, 'isSuspicious'
          5        SEND_VAL_EX                                              'google.com'
          6        DO_FCALL                                      0  $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'var_dump'
         10        INIT_METHOD_CALL                                         !0, 'isSuspicious'
         11        SEND_VAL_EX                                              '%D0%A0aypal.com'
         12        DO_FCALL                                      0  $6      
         13        SEND_VAR                                                 $6
         14        DO_ICALL                                                 
    7    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.4 ms | 996 KiB | 14 Q