3v4l.org

run code in 300+ PHP versions simultaneously
<?php $long = '/connect=;;41.26.162.36;;192.168.0.100;;8081;; /connect=;;98.250.16.76;;192.168.0.24;;8080;; /connect=;;216.152.60.12;;192.168.1.103;;8090;; /connect=;;91.11.65.110;;192.168.1.3;;8081;;'; if (preg_match_all('/connect=;;([\d\.]+);;([\d\.]+);;(\d+);;/', $long, $matches, PREG_SET_ORDER)) { foreach($matches as $match) { list(,$ip1, $ip2, $port) = $match; /* Do stuff */ echo "{$ip1} => {$ip2}:{$port}\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 27
Branch analysis from position: 8
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 26
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 26
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
Branch analysis from position: 27
filename:       /in/FpGFD
function name:  (null)
number of ops:  28
compiled vars:  !0 = $long, !1 = $matches, !2 = $match, !3 = $ip1, !4 = $ip2, !5 = $port
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2Fconnect%3D%3B%3B41.26.162.36%3B%3B192.168.0.100%3B%3B8081%3B%3B%0A%2Fconnect%3D%3B%3B98.250.16.76%3B%3B192.168.0.24%3B%3B8080%3B%3B%0A%2Fconnect%3D%3B%3B216.152.60.12%3B%3B192.168.1.103%3B%3B8090%3B%3B%0A%2Fconnect%3D%3B%3B91.11.65.110%3B%3B192.168.1.3%3B%3B8081%3B%3B'
    6     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2Fconnect%3D%3B%3B%28%5B%5Cd%5C.%5D%2B%29%3B%3B%28%5B%5Cd%5C.%5D%2B%29%3B%3B%28%5Cd%2B%29%3B%3B%2F'
    7     3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        SEND_VAL                                                 2
    6     6        DO_ICALL                                         $7      
    7     7      > JMPZ                                                     $7, ->27
    8     8    > > FE_RESET_R                                       $8      !1, ->26
          9    > > FE_FETCH_R                                               $8, !2, ->26
    9    10    >   QM_ASSIGN                                        ~9      !2
         11        FETCH_LIST_R                                     $10     ~9, 1
         12        ASSIGN                                                   !3, $10
         13        FETCH_LIST_R                                     $12     ~9, 2
         14        ASSIGN                                                   !4, $12
         15        FETCH_LIST_R                                     $14     ~9, 3
         16        ASSIGN                                                   !5, $14
         17        FREE                                                     ~9
   11    18        ROPE_INIT                                     6  ~17     !3
         19        ROPE_ADD                                      1  ~17     ~17, '+%3D%3E+'
         20        ROPE_ADD                                      2  ~17     ~17, !4
         21        ROPE_ADD                                      3  ~17     ~17, '%3A'
         22        ROPE_ADD                                      4  ~17     ~17, !5
         23        ROPE_END                                      5  ~16     ~17, '%0A'
         24        ECHO                                                     ~16
    8    25      > JMP                                                      ->9
         26    >   FE_FREE                                                  $8
   13    27    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.61 ms | 1444 KiB | 14 Q