3v4l.org

run code in 500+ PHP versions simultaneously
<?php preg_match('/^adress=([a-z.]+).*port=([0-9]{3})/s', 'adress=ad.test.com\n port=768', $match); echo $match[1] . ' ' . $match[2];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ih929
function name:  (null)
number of ops:  11
compiled vars:  !0 = $match
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'preg_match'
          1        SEND_VAL                                                     '%2F%5Eadress%3D%28%5Ba-z.%5D%2B%29.%2Aport%3D%28%5B0-9%5D%7B3%7D%29%2Fs'
          2        SEND_VAL                                                     'adress%3Dad.test.com%5Cn+port%3D768'
          3        SEND_REF                                                     !0
          4        DO_ICALL                                                     
    3     5        FETCH_DIM_R                                          ~2      !0, 1
          6        CONCAT                                               ~3      ~2, '+'
          7        FETCH_DIM_R                                          ~4      !0, 2
          8        CONCAT                                               ~5      ~3, ~4
          9        ECHO                                                         ~5
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
257.5 ms | 3294 KiB | 15 Q