3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_match('/^([\pL\pN\pS-]+\.)[\pL]+$/', utf8_decode('exämple.org')); echo ' but '; echo preg_match('/^([\pL\pN\pS-]+\.)[\pL]+$/', utf8_decode('exömple.org'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mvrq3
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%2F%5E%28%5B%5CpL%5CpN%5CpS-%5D%2B%5C.%29%5B%5CpL%5D%2B%24%2F'
          2        INIT_FCALL                                               'utf8_decode'
          3        SEND_VAL                                                 'ex%C3%A4mple.org'
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                         $1      
          7        ECHO                                                     $1
    3     8        ECHO                                                     '+but+'
    4     9        INIT_FCALL                                               'preg_match'
         10        SEND_VAL                                                 '%2F%5E%28%5B%5CpL%5CpN%5CpS-%5D%2B%5C.%29%5B%5CpL%5D%2B%24%2F'
         11        INIT_FCALL                                               'utf8_decode'
         12        SEND_VAL                                                 'ex%C3%B6mple.org'
         13        DO_ICALL                                         $2      
         14        SEND_VAR                                                 $2
         15        DO_ICALL                                         $3      
         16        ECHO                                                     $3
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.37 ms | 1399 KiB | 17 Q