3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = '[:it]Stringa in italiano[:en]String in english'; preg_match_all('~\[:([^]]+)](.+?)(?=$|\[:[^]]+])~', $string, $m); var_export($m);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/P0Qvh
function name:  (null)
number of ops:  10
compiled vars:  !0 = $string, !1 = $m
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%5B%3Ait%5DStringa+in+italiano%5B%3Aen%5DString+in+english'
    5     1        INIT_FCALL                                                   'preg_match_all'
          2        SEND_VAL                                                     '%7E%5C%5B%3A%28%5B%5E%5D%5D%2B%29%5D%28.%2B%3F%29%28%3F%3D%24%7C%5C%5B%3A%5B%5E%5D%5D%2B%5D%29%7E'
          3        SEND_VAR                                                     !0
          4        SEND_REF                                                     !1
          5        DO_ICALL                                                     
    6     6        INIT_FCALL                                                   'var_export'
          7        SEND_VAR                                                     !1
          8        DO_ICALL                                                     
          9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
210.41 ms | 1915 KiB | 15 Q