3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "127.0.0.1 domain.com #this is a comment"; preg_match('/^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})[ \t]+([^ #]+).+$/',$str,$arr); print_R($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G1D5n
function name:  (null)
number of ops:  10
compiled vars:  !0 = $str, !1 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '127.0.0.1%09+%09++domain.com+%23this+is+a+comment'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5E%28%5Cd%7B1%2C3%7D%5C.%5Cd%7B1%2C3%7D%5C.%5Cd%7B1%2C3%7D%5C.%5Cd%7B1%2C3%7D%29%5B+%5Ct%5D%2B%28%5B%5E+%23%5D%2B%29.%2B%24%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.53 ms | 1394 KiB | 17 Q