3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/^\+?0*(?:91-)?\K(?:91)?[6-9][0-9]{9}$/m'; $str = '+918877665544 0918877665544 0000918877665544 +91-8877665544 91-8877665544 00008877665544 +91-88776655440 91-88-77665544 +818877665544 0918877665544 0000918877665544 +91-8877665544 92-8877665544 00002877665544'; preg_match_all($re, $str, $matches); print_r($matches[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hS7bj
function name:  (null)
number of ops:  12
compiled vars:  !0 = $re, !1 = $str, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F%5E%5C%2B%3F0%2A%28%3F%3A91-%29%3F%5CK%28%3F%3A91%29%3F%5B6-9%5D%5B0-9%5D%7B9%7D%24%2Fm'
    4     1        ASSIGN                                                   !1, '%2B918877665544%0A0918877665544%0A0000918877665544%0A%0A%2B91-8877665544%0A91-8877665544%0A00008877665544%0A%0A%2B91-88776655440%0A91-88-77665544%0A%0A%0A%2B818877665544%0A0918877665544%0A0000918877665544%0A%0A%2B91-8877665544%0A92-8877665544%0A00002877665544'
   24     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
   25     7        INIT_FCALL                                               'print_r'
          8        FETCH_DIM_R                                      ~6      !2, 0
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.33 ms | 1002 KiB | 15 Q