3v4l.org

run code in 300+ PHP versions simultaneously
<?php $oSpoofchecker = new \Spoofchecker; $oSpoofchecker->setAllowedLocales("en_US_POSIX"); $oSpoofchecker->setChecks(SpoofChecker::WHOLE_SCRIPT_CONFUSABLE); $sText = 'abc'; // US-ASCII print 'ICU version: ' . INTL_ICU_VERSION . PHP_EOL . 'Text "' . $sText . '" ' . ($oSpoofchecker->isSuspicious($sText, $sError) ? 'IS' : 'IS NOT') . ' suspicious' . PHP_EOL;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9Q5Zo
function name:  (null)
number of ops:  30
compiled vars:  !0 = $oSpoofchecker, !1 = $sText, !2 = $sError
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'Spoofchecker'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    4     3        INIT_METHOD_CALL                                         !0, 'setAllowedLocales'
          4        SEND_VAL_EX                                              'en_US_POSIX'
          5        DO_FCALL                                      0          
    5     6        INIT_METHOD_CALL                                         !0, 'setChecks'
          7        FETCH_CLASS_CONSTANT                             ~7      'SpoofChecker', 'WHOLE_SCRIPT_CONFUSABLE'
          8        SEND_VAL_EX                                              ~7
          9        DO_FCALL                                      0          
    6    10        ASSIGN                                                   !1, 'abc'
    8    11        FETCH_CONSTANT                                   ~10     'INTL_ICU_VERSION'
         12        CONCAT                                           ~11     'ICU+version%3A+', ~10
         13        CONCAT                                           ~12     ~11, '%0A'
    9    14        CONCAT                                           ~13     ~12, 'Text+%22'
         15        CONCAT                                           ~14     ~13, !1
         16        CONCAT                                           ~15     ~14, '%22+'
   10    17        INIT_METHOD_CALL                                         !0, 'isSuspicious'
         18        SEND_VAR_EX                                              !1
         19        SEND_VAR_EX                                              !2
         20        DO_FCALL                                      0  $16     
         21      > JMPZ                                                     $16, ->24
         22    >   QM_ASSIGN                                        ~17     'IS'
         23      > JMP                                                      ->25
         24    >   QM_ASSIGN                                        ~17     'IS+NOT'
         25    >   CONCAT                                           ~18     ~15, ~17
   11    26        CONCAT                                           ~19     ~18, '+suspicious'
         27        CONCAT                                           ~20     ~19, '%0A'
         28        ECHO                                                     ~20
   12    29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.25 ms | 1008 KiB | 13 Q