3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "username............: username home directory......: 00/username mail storage server.: mail-server.example.net status..............: active quota size..........: 1000.000 megabytes quota count.........: no quota forward to..........: username@example.com full name...........: testing:testing offers..............:"; preg_match_all('/\s*([a-z ]+)\.*:\s*(.+)\s*/i', $string, $matches); $values = array_combine($matches[1], $matches[2]); var_dump($values);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1BKCM
function name:  (null)
number of ops:  17
compiled vars:  !0 = $string, !1 = $matches, !2 = $values
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'username............%3A+username%0Ahome+directory......%3A+00%2Fusername%0Amail+storage+server.%3A+mail-server.example.net%0Astatus..............%3A+active%0Aquota+size..........%3A+1000.000+megabytes%0Aquota+count.........%3A+no+quota%0Aforward+to..........%3A+username%40example.com%0Afull+name...........%3A+testing%3Atesting%0Aoffers..............%3A'
   13     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%5Cs%2A%28%5Ba-z+%5D%2B%29%5C.%2A%3A%5Cs%2A%28.%2B%29%5Cs%2A%2Fi'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
   15     6        INIT_FCALL                                               'array_combine'
          7        FETCH_DIM_R                                      ~5      !1, 1
          8        SEND_VAL                                                 ~5
          9        FETCH_DIM_R                                      ~6      !1, 2
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !2, $7
   17    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.3 ms | 1395 KiB | 19 Q