3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '123.23.23.4/17,'; $str .= '123.23.23.4/23,'; $str .= '123.23.23.4/8,'; $str .= '123.23.23.4/18'; preg_match_all("~/\K(?:[1-9]|[12][0-9]|3[01])\b~", $str, $matches); print_r($matches[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5aQZM
function name:  (null)
number of ops:  14
compiled vars:  !0 = $str, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '123.23.23.4%2F17%2C'
    4     1        ASSIGN_OP                                     8          !0, '123.23.23.4%2F23%2C'
    5     2        ASSIGN_OP                                     8          !0, '123.23.23.4%2F8%2C'
    6     3        ASSIGN_OP                                     8          !0, '123.23.23.4%2F18'
    8     4        INIT_FCALL                                               'preg_match_all'
          5        SEND_VAL                                                 '%7E%2F%5CK%28%3F%3A%5B1-9%5D%7C%5B12%5D%5B0-9%5D%7C3%5B01%5D%29%5Cb%7E'
          6        SEND_VAR                                                 !0
          7        SEND_REF                                                 !1
          8        DO_ICALL                                                 
    9     9        INIT_FCALL                                               'print_r'
         10        FETCH_DIM_R                                      ~7      !1, 0
         11        SEND_VAL                                                 ~7
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.63 ms | 1394 KiB | 17 Q