3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url="https://www.nappsng.org/schools/search/"; $text=file_get_contents($url); $res = preg_match_all("/\b[0-9]{3}\s*-\s*[0-9]{4}\s*-\s*[0-9]{4}\b/",$text,$matches); if ($res) { foreach(array_unique($matches[0]) as $email) { echo $email . "<br />"; } } else { echo "No emails found."; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 23
Branch analysis from position: 12
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 21
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 21
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sur9G
function name:  (null)
number of ops:  25
compiled vars:  !0 = $url, !1 = $text, !2 = $res, !3 = $matches, !4 = $email
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Fwww.nappsng.org%2Fschools%2Fsearch%2F'
    4     1        INIT_FCALL                                               'file_get_contents'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $6      
          4        ASSIGN                                                   !1, $6
    5     5        INIT_FCALL                                               'preg_match_all'
          6        SEND_VAL                                                 '%2F%5Cb%5B0-9%5D%7B3%7D%5Cs%2A-%5Cs%2A%5B0-9%5D%7B4%7D%5Cs%2A-%5Cs%2A%5B0-9%5D%7B4%7D%5Cb%2F'
          7        SEND_VAR                                                 !1
          8        SEND_REF                                                 !3
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !2, $8
    6    11      > JMPZ                                                     !2, ->23
    7    12    >   INIT_FCALL                                               'array_unique'
         13        FETCH_DIM_R                                      ~10     !3, 0
         14        SEND_VAL                                                 ~10
         15        DO_ICALL                                         $11     
         16      > FE_RESET_R                                       $12     $11, ->21
         17    > > FE_FETCH_R                                               $12, !4, ->21
    8    18    >   CONCAT                                           ~13     !4, '%3Cbr+%2F%3E'
         19        ECHO                                                     ~13
    7    20      > JMP                                                      ->17
         21    >   FE_FREE                                                  $12
         22      > JMP                                                      ->24
   12    23    >   ECHO                                                     'No+emails+found.'
   13    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.78 ms | 1396 KiB | 19 Q