3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<TEXT user1,1234; user2,2345; user3,3456; TEXT; var_export( preg_match_all('/^([^,]+),(\d+)/m', $text, $m) ? array_combine($m[1], $m[2]) : [] );
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 16
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UsEK4
function name:  (null)
number of ops:  20
compiled vars:  !0 = $text, !1 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'user1%2C1234%3B%0Auser2%2C2345%3B%0Auser3%2C3456%3B'
    9     1        INIT_FCALL                                               'var_export'
   10     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAL                                                 '%2F%5E%28%5B%5E%2C%5D%2B%29%2C%28%5Cd%2B%29%2Fm'
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !1
          6        DO_ICALL                                         $3      
          7      > JMPZ                                                     $3, ->16
          8    >   INIT_FCALL                                               'array_combine'
          9        FETCH_DIM_R                                      ~4      !1, 1
         10        SEND_VAL                                                 ~4
         11        FETCH_DIM_R                                      ~5      !1, 2
         12        SEND_VAL                                                 ~5
         13        DO_ICALL                                         $6      
         14        QM_ASSIGN                                        ~7      $6
         15      > JMP                                                      ->17
         16    >   QM_ASSIGN                                        ~7      <array>
         17    >   SEND_VAL                                                 ~7
    9    18        DO_ICALL                                                 
   11    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.33 ms | 1012 KiB | 16 Q