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.org1"; $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 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aA2bc
function name:  (null)
number of ops:  16
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.org1'
    5     2        INIT_FCALL_BY_NAME                                       'idn_to_ascii'
          3        SEND_VAR_EX                                              !1
          4        DO_FCALL                                      0  $4      
          5        ASSIGN                                                   !1, $4
    7     6        INIT_FCALL                                               'preg_match'
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $6      
         10      > JMPZ                                                     $6, ->13
         11    >   QM_ASSIGN                                        ~7      'Domain+is+valid.'
         12      > JMP                                                      ->14
         13    >   QM_ASSIGN                                        ~7      'Domain+is+not+valid.'
         14    >   ECHO                                                     ~7
    9    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.78 ms | 1386 KiB | 15 Q