3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "INVOICE=123456:STATUS=PAID:PAY_TIME=20150525233333:STAN=123456:BCODE=ddd123 INVOICE=123457:STATUS=EXPIRED INVOICE=123458:STATUS=DENIED"; $lines = explode("\n", $text); foreach ($lines as $line) { if (preg_match_all('/(.+?)=(.+?)/', $line, $matches)) { print_r($matches); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 18
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 18
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 17
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 17
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/qX0IK
function name:  (null)
number of ops:  20
compiled vars:  !0 = $text, !1 = $lines, !2 = $line, !3 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'INVOICE%3D123456%3ASTATUS%3DPAID%3APAY_TIME%3D20150525233333%3ASTAN%3D123456%3ABCODE%3Dddd123%0AINVOICE%3D123457%3ASTATUS%3DEXPIRED%0AINVOICE%3D123458%3ASTATUS%3DDENIED'
    7     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%0A'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    8     6      > FE_RESET_R                                       $7      !1, ->18
          7    > > FE_FETCH_R                                               $7, !2, ->18
    9     8    >   INIT_FCALL                                               'preg_match_all'
          9        SEND_VAL                                                 '%2F%28.%2B%3F%29%3D%28.%2B%3F%29%2F'
         10        SEND_VAR                                                 !2
         11        SEND_REF                                                 !3
         12        DO_ICALL                                         $8      
         13      > JMPZ                                                     $8, ->17
   10    14    >   INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                                 
    8    17    > > JMP                                                      ->7
         18    >   FE_FREE                                                  $7
   12    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.88 ms | 1395 KiB | 19 Q