3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.88 ms | 1394 KiB | 15 Q