3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<STRING 34.345.32.1:9032 4.3.21.234 2023 45.31.45.324:1025 STRING; preg_match_all('~(\d{1,3}(?:\.\d{1,3}){3})[: ]\K\d{4}~', $string, $matches, PREG_SET_ORDER); var_export(array_map('array_reverse', $matches));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lJj5e
function name:  (null)
number of ops:  15
compiled vars:  !0 = $string, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '34.345.32.1%3A9032%0A4.3.21.234+2023%0A45.31.45.324%3A1025'
    9     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%7E%28%5Cd%7B1%2C3%7D%28%3F%3A%5C.%5Cd%7B1%2C3%7D%29%7B3%7D%29%5B%3A+%5D%5CK%5Cd%7B4%7D%7E'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        SEND_VAL                                                 2
          6        DO_ICALL                                                 
   11     7        INIT_FCALL                                               'var_export'
          8        INIT_FCALL                                               'array_map'
          9        SEND_VAL                                                 'array_reverse'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $4      
         12        SEND_VAR                                                 $4
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.89 ms | 1011 KiB | 16 Q