3v4l.org

run code in 300+ PHP versions simultaneously
<?php $reply = "18701880775,woca,2015-11-13 15:32:22.0"; $data = explode(";", $reply); foreach ($data as $k => $v) { $sms = explode(',', $v); if(!$v['0']) { continue; } $fields['su_from'] = 4; // 1众览 2建周 $fields['su_mid'] = $S->getMidByPhone($v['0']) ? $S->getMidByPhone($v['0']) : 0; $fields['su_mobile'] = $sms['0']; $fields['su_content'] = $sms['1']; $fields['su_time'] = $sms['2']; $fields['su_extenion'] = ''; $fields['su_create_time'] = '=NOW()'; $fields['su_create_time'] = '=NOW()'; var_dump($fields); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 55
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 55
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 18
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 33
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 55
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 55
filename:       /in/0pYnl
function name:  (null)
number of ops:  57
compiled vars:  !0 = $reply, !1 = $data, !2 = $v, !3 = $k, !4 = $sms, !5 = $fields, !6 = $S
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '18701880775%2Cwoca%2C2015-11-13+15%3A32%3A22.0'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%3B'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $8      
          5        ASSIGN                                                   !1, $8
    5     6      > FE_RESET_R                                       $10     !1, ->55
          7    > > FE_FETCH_R                                       ~11     $10, !2, ->55
          8    >   ASSIGN                                                   !3, ~11
    6     9        INIT_FCALL                                               'explode'
         10        SEND_VAL                                                 '%2C'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                         $13     
         13        ASSIGN                                                   !4, $13
    7    14        FETCH_DIM_R                                      ~15     !2, 0
         15        BOOL_NOT                                         ~16     ~15
         16      > JMPZ                                                     ~16, ->18
    9    17    > > JMP                                                      ->7
   11    18    >   ASSIGN_DIM                                               !5, 'su_from'
         19        OP_DATA                                                  4
   12    20        INIT_METHOD_CALL                                         !6, 'getMidByPhone'
         21        CHECK_FUNC_ARG                                           
         22        FETCH_DIM_FUNC_ARG                               $19     !2, 0
         23        SEND_FUNC_ARG                                            $19
         24        DO_FCALL                                      0  $20     
         25      > JMPZ                                                     $20, ->33
         26    >   INIT_METHOD_CALL                                         !6, 'getMidByPhone'
         27        CHECK_FUNC_ARG                                           
         28        FETCH_DIM_FUNC_ARG                               $21     !2, 0
         29        SEND_FUNC_ARG                                            $21
         30        DO_FCALL                                      0  $22     
         31        QM_ASSIGN                                        ~23     $22
         32      > JMP                                                      ->34
         33    >   QM_ASSIGN                                        ~23     0
         34    >   ASSIGN_DIM                                               !5, 'su_mid'
         35        OP_DATA                                                  ~23
   13    36        FETCH_DIM_R                                      ~25     !4, 0
         37        ASSIGN_DIM                                               !5, 'su_mobile'
         38        OP_DATA                                                  ~25
   14    39        FETCH_DIM_R                                      ~27     !4, 1
         40        ASSIGN_DIM                                               !5, 'su_content'
         41        OP_DATA                                                  ~27
   15    42        FETCH_DIM_R                                      ~29     !4, 2
         43        ASSIGN_DIM                                               !5, 'su_time'
         44        OP_DATA                                                  ~29
   16    45        ASSIGN_DIM                                               !5, 'su_extenion'
         46        OP_DATA                                                  ''
   17    47        ASSIGN_DIM                                               !5, 'su_create_time'
         48        OP_DATA                                                  '%3DNOW%28%29'
   18    49        ASSIGN_DIM                                               !5, 'su_create_time'
         50        OP_DATA                                                  '%3DNOW%28%29'
   19    51        INIT_FCALL                                               'var_dump'
         52        SEND_VAR                                                 !5
         53        DO_ICALL                                                 
    5    54      > JMP                                                      ->7
         55    >   FE_FREE                                                  $10
   20    56      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.39 ms | 1400 KiB | 17 Q