3v4l.org

run code in 300+ PHP versions simultaneously
<?php $raw_string = '152124687951<?xml version="1.0"><culo>Amazing</culo></Document>65464614 abc<?xml version="1.0"><culo>Amazing</culo></Document>abc 152124687951<?xml version="1.0"><culo>Amazing</culo></Document>65464614 abc<?xml version="1.0"><culo>Amazing</culo></Document>abc'; $pattern = '@\\<\\?xml.+Document\\>@'; preg_match_all($pattern, $string, $matches, PREG_PATTERN_ORDER); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iBdnf
function name:  (null)
number of ops:  12
compiled vars:  !0 = $raw_string, !1 = $pattern, !2 = $string, !3 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '152124687951%3C%3Fxml+version%3D%221.0%22%3E%3Cculo%3EAmazing%3C%2Fculo%3E%3C%2FDocument%3E65464614%0Aabc%3C%3Fxml+version%3D%221.0%22%3E%3Cculo%3EAmazing%3C%2Fculo%3E%3C%2FDocument%3Eabc+152124687951%3C%3Fxml+version%3D%221.0%22%3E%3Cculo%3EAmazing%3C%2Fculo%3E%3C%2FDocument%3E65464614%0Aabc%3C%3Fxml+version%3D%221.0%22%3E%3Cculo%3EAmazing%3C%2Fculo%3E%3C%2FDocument%3Eabc'
    7     1        ASSIGN                                                   !1, '%40%5C%3C%5C%3Fxml.%2BDocument%5C%3E%40'
    9     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !2
          5        SEND_REF                                                 !3
          6        SEND_VAL                                                 1
          7        DO_ICALL                                                 
   11     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !3
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.9 ms | 1386 KiB | 17 Q