3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = 'export NTPSERVER_1 NTPSERVER_2 NTPSERVER_3 PSLOGHOST LOGHOST RSSHHOST RHPORT NTPSERVER_1=8.8.8.8 NTPSERVER_2= NTPSERVER_3= LOGHOST="8.8.8.8" PSLOGHOST="" RSSHHOST="8.8.8.8" RHPORT=88888'; Preg_match_all("/(\w+)\=(.*)/", $str, $matches); Foreach($matches[1] as $key => $val){ $res[$val] = str_replace('"','',$matches[2][$key]); } Var_dump($res);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 17
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 17
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/CO59t
function name:  (null)
number of ops:  22
compiled vars:  !0 = $str, !1 = $matches, !2 = $val, !3 = $key, !4 = $res
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'export+NTPSERVER_1+NTPSERVER_2+NTPSERVER_3+PSLOGHOST+LOGHOST+RSSHHOST+RHPORT%0ANTPSERVER_1%3D8.8.8.8%0ANTPSERVER_2%3D%0ANTPSERVER_3%3D%0ALOGHOST%3D%228.8.8.8%22%0APSLOGHOST%3D%22%22%0ARSSHHOST%3D%228.8.8.8%22%0ARHPORT%3D88888'
   12     1        INIT_FCALL                                                   'preg_match_all'
          2        SEND_VAL                                                     '%2F%28%5Cw%2B%29%5C%3D%28.%2A%29%2F'
          3        SEND_VAR                                                     !0
          4        SEND_REF                                                     !1
          5        DO_ICALL                                                     
   14     6        FETCH_DIM_R                                          ~7      !1, 1
          7      > FE_RESET_R                                           $8      ~7, ->17
          8    > > FE_FETCH_R                                           ~9      $8, !2, ->17
          9    >   ASSIGN                                                       !3, ~9
   15    10        FETCH_DIM_R                                          ~12     !1, 2
         11        FETCH_DIM_R                                          ~13     ~12, !3
         12        FRAMELESS_ICALL_3                str_replace         ~14     '%22', ''
         13        OP_DATA                                                      ~13
         14        ASSIGN_DIM                                                   !4, !2
         15        OP_DATA                                                      ~14
   14    16      > JMP                                                          ->8
         17    >   FE_FREE                                                      $8
   19    18        INIT_FCALL                                                   'var_dump'
         19        SEND_VAR                                                     !4
         20        DO_ICALL                                                     
         21      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.86 ms | 2057 KiB | 15 Q