3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( 'report_id' => (int) $r['report_id'], 'openDate' => self::isoDate($r['open_date']? $r['open_date'] : '2015-09-08 12:06:00'), 'openedBy' => $r['opened_by']? (int) $r['opened_by'] : 42, 'response' => array( 'text' => $r['answer'], 'creationDate' => self::isoDate($r['answer_date']), 'author' => (int) $r['account_id'] ), 'credits' => array( 'member_id' => (int) $r['member_id'], 'campaign_id' => (int) $r['project_id'], 'category' => (empty($r['points_category']))? 5: 5, 'description' => $r['points_reason'], 'date' => self::isoDate($r['answer_date']), 'amount' => $r['points'] ) ); //if(!empty($r['publish'])) { array_merge ($data, array('published'=> $r['publish'])); //} die(var_dump($data));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 19
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 41, Position 2 = 43
Branch analysis from position: 41
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 43
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 41, Position 2 = 43
Branch analysis from position: 41
Branch analysis from position: 43
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 19
Branch analysis from position: 15
Branch analysis from position: 19
filename:       /in/9amcW
function name:  (null)
number of ops:  68
compiled vars:  !0 = $data, !1 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   FETCH_DIM_R                                      ~2      !1, 'report_id'
          1        CAST                                          4  ~3      ~2
          2        INIT_ARRAY                                       ~4      ~3, 'report_id'
    5     3        INIT_STATIC_METHOD_CALL                                  'isoDate'
          4        FETCH_DIM_R                                      ~5      !1, 'open_date'
          5      > JMPZ                                                     ~5, ->9
          6    >   FETCH_DIM_R                                      ~6      !1, 'open_date'
          7        QM_ASSIGN                                        ~7      ~6
          8      > JMP                                                      ->10
          9    >   QM_ASSIGN                                        ~7      '2015-09-08+12%3A06%3A00'
         10    >   SEND_VAL_EX                                              ~7
         11        DO_FCALL                                      0  $8      
         12        ADD_ARRAY_ELEMENT                                ~4      $8, 'openDate'
    6    13        FETCH_DIM_R                                      ~9      !1, 'opened_by'
         14      > JMPZ                                                     ~9, ->19
         15    >   FETCH_DIM_R                                      ~10     !1, 'opened_by'
         16        CAST                                          4  ~11     ~10
         17        QM_ASSIGN                                        ~12     ~11
         18      > JMP                                                      ->20
         19    >   QM_ASSIGN                                        ~12     42
         20    >   ADD_ARRAY_ELEMENT                                ~4      ~12, 'openedBy'
    8    21        FETCH_DIM_R                                      ~13     !1, 'answer'
         22        INIT_ARRAY                                       ~14     ~13, 'text'
    9    23        INIT_STATIC_METHOD_CALL                                  'isoDate'
         24        CHECK_FUNC_ARG                                           
         25        FETCH_DIM_FUNC_ARG                               $15     !1, 'answer_date'
         26        SEND_FUNC_ARG                                            $15
         27        DO_FCALL                                      0  $16     
         28        ADD_ARRAY_ELEMENT                                ~14     $16, 'creationDate'
   10    29        FETCH_DIM_R                                      ~17     !1, 'account_id'
         30        CAST                                          4  ~18     ~17
         31        ADD_ARRAY_ELEMENT                                ~14     ~18, 'author'
         32        ADD_ARRAY_ELEMENT                                ~4      ~14, 'response'
   13    33        FETCH_DIM_R                                      ~19     !1, 'member_id'
         34        CAST                                          4  ~20     ~19
         35        INIT_ARRAY                                       ~21     ~20, 'member_id'
   14    36        FETCH_DIM_R                                      ~22     !1, 'project_id'
         37        CAST                                          4  ~23     ~22
         38        ADD_ARRAY_ELEMENT                                ~21     ~23, 'campaign_id'
   15    39        ISSET_ISEMPTY_DIM_OBJ                         1          !1, 'points_category'
         40      > JMPZ                                                     ~24, ->43
         41    >   QM_ASSIGN                                        ~25     5
         42      > JMP                                                      ->44
         43    >   QM_ASSIGN                                        ~25     5
         44    >   ADD_ARRAY_ELEMENT                                ~21     ~25, 'category'
   16    45        FETCH_DIM_R                                      ~26     !1, 'points_reason'
         46        ADD_ARRAY_ELEMENT                                ~21     ~26, 'description'
   17    47        INIT_STATIC_METHOD_CALL                                  'isoDate'
         48        CHECK_FUNC_ARG                                           
         49        FETCH_DIM_FUNC_ARG                               $27     !1, 'answer_date'
         50        SEND_FUNC_ARG                                            $27
         51        DO_FCALL                                      0  $28     
         52        ADD_ARRAY_ELEMENT                                ~21     $28, 'date'
   18    53        FETCH_DIM_R                                      ~29     !1, 'points'
         54        ADD_ARRAY_ELEMENT                                ~21     ~29, 'amount'
         55        ADD_ARRAY_ELEMENT                                ~4      ~21, 'credits'
    3    56        ASSIGN                                                   !0, ~4
   23    57        INIT_FCALL                                               'array_merge'
         58        SEND_VAR                                                 !0
         59        FETCH_DIM_R                                      ~31     !1, 'publish'
         60        INIT_ARRAY                                       ~32     ~31, 'published'
         61        SEND_VAL                                                 ~32
         62        DO_ICALL                                                 
   25    63        INIT_FCALL                                               'var_dump'
         64        SEND_VAR                                                 !0
         65        DO_ICALL                                         $34     
         66      > EXIT                                                     $34
         67*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.79 ms | 1400 KiB | 17 Q