3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '/* name for an item that is duplicated in the UI, based on the original name / "%@ (Copy)" = "%@ (kopi)"; / display name for a book page template that is the first page of that section / "%@ (First)" = "%@ (Første)"; / display name for a book page template that represents a hardcover cover. the second argument is the cover type. */ "%@ (Hardcover, %@)" = "%1$@ (Hard innbinding, %2$@)";'; preg_match_all('#"([^"]+)"\s*=\s*"([^"]+)";#', $text, $match); $translate = array_combine($match[1], $match[2]); print_r($translate);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OsVQd
function name:  (null)
number of ops:  17
compiled vars:  !0 = $text, !1 = $match, !2 = $translate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2F%2A+name+for+an+item+that+is+duplicated+in+the+UI%2C+based+on+the+original+name+%2F+%22%25%40+%28Copy%29%22+%3D+%22%25%40+%28kopi%29%22%3B+%2F+display+name+for+a+book+page+template+that+is+the+first+page+of+that+section+%2F+%22%25%40+%28First%29%22+%3D+%22%25%40+%28F%C3%B8rste%29%22%3B+%2F+display+name+for+a+book+page+template+that+represents+a+hardcover+cover.+the+second+argument+is+the+cover+type.+%2A%2F+%22%25%40+%28Hardcover%2C+%25%40%29%22+%3D+%22%251%24%40+%28Hard+innbinding%2C+%252%24%40%29%22%3B'
    3     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%23%22%28%5B%5E%22%5D%2B%29%22%5Cs%2A%3D%5Cs%2A%22%28%5B%5E%22%5D%2B%29%22%3B%23'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'array_combine'
          7        FETCH_DIM_R                                      ~5      !1, 1
          8        SEND_VAL                                                 ~5
          9        FETCH_DIM_R                                      ~6      !1, 2
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !2, $7
    5    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.58 ms | 1386 KiB | 19 Q