3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = '{:de}Hallo Welt{:}{:en}Helo world{:}'; Preg_match_all("/\{:(.*?)}(.*?)\{/", $str, $matches); $matches = array_combine($matches[1], $matches[2]); Var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ELB2B
function name:  (null)
number of ops:  17
compiled vars:  !0 = $str, !1 = $matches
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%7B%3Ade%7DHallo+Welt%7B%3A%7D%7B%3Aen%7DHelo+world%7B%3A%7D'
    5     1        INIT_FCALL                                                   'preg_match_all'
          2        SEND_VAL                                                     '%2F%5C%7B%3A%28.%2A%3F%29%7D%28.%2A%3F%29%5C%7B%2F'
          3        SEND_VAR                                                     !0
          4        SEND_REF                                                     !1
          5        DO_ICALL                                                     
    6     6        INIT_FCALL                                                   'array_combine'
          7        FETCH_DIM_R                                          ~4      !1, 1
          8        SEND_VAL                                                     ~4
          9        FETCH_DIM_R                                          ~5      !1, 2
         10        SEND_VAL                                                     ~5
         11        DO_ICALL                                             $6      
         12        ASSIGN                                                       !1, $6
    8    13        INIT_FCALL                                                   'var_dump'
         14        SEND_VAR                                                     !1
         15        DO_ICALL                                                     
         16      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
173.24 ms | 2549 KiB | 16 Q