3v4l.org

run code in 300+ PHP versions simultaneously
<?php $host = 'casino.vbet.com'; preg_match("/[^\.\/]+\.[^\.\/]+$/", $host, $matches); echo "domain name is: {$matches[0]}\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/64dfp
function name:  (null)
number of ops:  12
compiled vars:  !0 = $host, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'casino.vbet.com'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5B%5E%5C.%5C%2F%5D%2B%5C.%5B%5E%5C.%5C%2F%5D%2B%24%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    4     6        ROPE_INIT                                     3  ~6      'domain+name+is%3A+'
          7        FETCH_DIM_R                                      ~4      !1, 0
          8        ROPE_ADD                                      1  ~6      ~6, ~4
          9        ROPE_END                                      2  ~5      ~6, '%0A'
         10        ECHO                                                     ~5
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.89 ms | 1394 KiB | 15 Q