3v4l.org

run code in 500+ PHP versions simultaneously
<?php $contents = '04:19:58 | Player "xxx" (id=xxx pos=<3748.4, 5976.5, 403.3>)'; $pattern = '/(pos=)<([^,\r\n]*),([^,\r\n]*),([^,\r\n]*)>/'; if(preg_match_all($pattern, $contents, $matches)){ echo "Found matches:\n"; print_r($matches); } else{ echo "No matches found"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7XvJG
function name:  (null)
number of ops:  15
compiled vars:  !0 = $contents, !1 = $pattern, !2 = $matches
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '04%3A19%3A58+%7C+Player+%22xxx%22+%28id%3Dxxx+pos%3D%3C3748.4%2C+5976.5%2C+403.3%3E%29'
    4     1        ASSIGN                                                       !1, '%2F%28pos%3D%29%3C%28%5B%5E%2C%5Cr%5Cn%5D%2A%29%2C%28%5B%5E%2C%5Cr%5Cn%5D%2A%29%2C%28%5B%5E%2C%5Cr%5Cn%5D%2A%29%3E%2F'
    6     2        INIT_FCALL                                                   'preg_match_all'
          3        SEND_VAR                                                     !1
          4        SEND_VAR                                                     !0
          5        SEND_REF                                                     !2
          6        DO_ICALL                                             $5      
          7      > JMPZ                                                         $5, ->13
    7     8    >   ECHO                                                         'Found+matches%3A%0A'
    8     9        INIT_FCALL                                                   'print_r'
         10        SEND_VAR                                                     !2
         11        DO_ICALL                                                     
    6    12      > JMP                                                          ->14
   11    13    >   ECHO                                                         'No+matches+found'
   12    14    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.82 ms | 1954 KiB | 15 Q