3v4l.org

run code in 300+ 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 = 20
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 20
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/CO59t
function name:  (null)
number of ops:  25
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, ->20
          8    > > FE_FETCH_R                                       ~9      $8, !2, ->20
          9    >   ASSIGN                                                   !3, ~9
   15    10        INIT_FCALL                                               'str_replace'
         11        SEND_VAL                                                 '%22'
         12        SEND_VAL                                                 ''
         13        FETCH_DIM_R                                      ~12     !1, 2
         14        FETCH_DIM_R                                      ~13     ~12, !3
         15        SEND_VAL                                                 ~13
         16        DO_ICALL                                         $14     
         17        ASSIGN_DIM                                               !4, !2
         18        OP_DATA                                                  $14
   14    19      > JMP                                                      ->8
         20    >   FE_FREE                                                  $8
   19    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !4
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
291.29 ms | 1012 KiB | 16 Q