3v4l.org

run code in 300+ PHP versions simultaneously
<?php $reg = "#^([\w-]+://?|www[\.])?[a-z0-9]+[a-z0-9\-\.]*[a-z0-9]+\.[a-z]{2,7}$#"; $domain_name = "ελληνικά.idn.icann.org"; $domain_name = @idn_to_ascii($domain_name); echo preg_match($reg, $domain_name) ? "Domain is valid." : "Domain is not valid."; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V4Gu6
function name:  (null)
number of ops:  18
compiled vars:  !0 = $reg, !1 = $domain_name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%23%5E%28%5B%5Cw-%5D%2B%3A%2F%2F%3F%7Cwww%5B%5C.%5D%29%3F%5Ba-z0-9%5D%2B%5Ba-z0-9%5C-%5C.%5D%2A%5Ba-z0-9%5D%2B%5C.%5Ba-z%5D%7B2%2C7%7D%24%23'
    4     1        ASSIGN                                                   !1, '%CE%B5%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC.idn.icann.org'
    5     2        BEGIN_SILENCE                                    ~4      
          3        INIT_FCALL_BY_NAME                                       'idn_to_ascii'
          4        SEND_VAR_EX                                              !1
          5        DO_FCALL                                      0  $5      
          6        END_SILENCE                                              ~4
          7        ASSIGN                                                   !1, $5
    7     8        INIT_FCALL                                               'preg_match'
          9        SEND_VAR                                                 !0
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $7      
         12      > JMPZ                                                     $7, ->15
         13    >   QM_ASSIGN                                        ~8      'Domain+is+valid.'
         14      > JMP                                                      ->16
         15    >   QM_ASSIGN                                        ~8      'Domain+is+not+valid.'
         16    >   ECHO                                                     ~8
    9    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.56 ms | 1395 KiB | 15 Q