3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_url_string = 'iran.co.ir'; preg_match("/[a-z0-9\-]{1,63}\.[a-z\.]{2,6}$/", parse_url($_url_string, PHP_URL_HOST), $_domain_tld); var_dump($_domain_tld);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BrS0m
function name:  (null)
number of ops:  14
compiled vars:  !0 = $_url_string, !1 = $_domain_tld
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'iran.co.ir'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5Ba-z0-9%5C-%5D%7B1%2C63%7D%5C.%5Ba-z%5C.%5D%7B2%2C6%7D%24%2F'
          3        INIT_FCALL                                               'parse_url'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 1
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        SEND_REF                                                 !1
          9        DO_ICALL                                                 
    5    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.08 ms | 1394 KiB | 19 Q