3v4l.org

run code in 500+ PHP versions simultaneously
<?php $text = "När:Sent lördag kväll och natt till söndag\nVar:Främst norra Jämtland\nIntensitet:Väst ca 21 m/s\nKommentar:-"; preg_match_all("/\w+:(.*?)\\n/", $text, $match); print_r($match);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rpu5E
function name:  (null)
number of ops:  10
compiled vars:  !0 = $text, !1 = $match
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                       !0, 'N%C3%A4r%3ASent+l%C3%B6rdag+kv%C3%A4ll+och+natt+till+s%C3%B6ndag%0AVar%3AFr%C3%A4mst+norra+J%C3%A4mtland%0AIntensitet%3AV%C3%A4st+ca+21+m%2Fs%0AKommentar%3A-'
    5     1        INIT_FCALL                                                   'preg_match_all'
          2        SEND_VAL                                                     '%2F%5Cw%2B%3A%28.%2A%3F%29%5Cn%2F'
          3        SEND_VAR                                                     !0
          4        SEND_REF                                                     !1
          5        DO_ICALL                                                     
    6     6        INIT_FCALL                                                   'print_r'
          7        SEND_VAR                                                     !1
          8        DO_ICALL                                                     
          9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.69 ms | 2335 KiB | 15 Q