3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<EOD for landline no 0802404408 080-2404408 (080) 2404408 +91802404408 +91-802404408 for mobile no 8147708287 08147708287 +918147708287 +91-8147708287 can anyone help me, thanks in advance EOD; //$pattern = '/\b[\+\(]*?[0-9-]+[\)\s]*?[0-9-]+\b/'; $pattern = '/[\+\(]*?\b[0-9-]+[\)\s]*?[0-9-]+\b/'; preg_match_all($pattern, $str, $matches); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iGFQE
function name:  (null)
number of ops:  11
compiled vars:  !0 = $str, !1 = $pattern, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'for+landline+no%0A%0A0802404408%0A080-2404408%0A%28080%29+2404408%0A%2B91802404408%0A%2B91-802404408%0Afor+mobile+no%0A%0A8147708287%0A08147708287%0A%2B918147708287%0A%2B91-8147708287%0Acan+anyone+help+me%2C+thanks+in+advance'
   21     1        ASSIGN                                                   !1, '%2F%5B%5C%2B%5C%28%5D%2A%3F%5Cb%5B0-9-%5D%2B%5B%5C%29%5Cs%5D%2A%3F%5B0-9-%5D%2B%5Cb%2F'
   23     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
   25     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.91 ms | 1394 KiB | 17 Q