3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tmp = [ 'uuid' => '', 'format' => '', 'adress' => '', 'lastname' => '', 'firstname' => '', ]; $users[] = array( 'ckey' => strlen(trim($tmp['uuid'])) ? $tmp['uuid'] : Brainbits_Util_Uuid::generate(), 'language' => $tmp['language'] ? trim($tmp['language']) : 'de', 'newsletter_format' => $tmp['format'] ? trim(strtolower($tmp['format'])) : 'html', 'adress' => $tmp['adress'] ? trim($tmp['adress']) : '', 'last_name' => $tmp['lastname'] ? trim($tmp['lastname']) : '', 'first_name' => $tmp['firstname'] ? trim($tmp['firstname']) : '', 'email' => trim($tmp['email']), 'mobile' => '0', ); var_dump($users);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 22
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 35
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 45
Branch analysis from position: 39
1 jumps found. (Code = 42) Position 1 = 46
Branch analysis from position: 46
2 jumps found. (Code = 43) Position 1 = 49, Position 2 = 55
Branch analysis from position: 49
1 jumps found. (Code = 42) Position 1 = 56
Branch analysis from position: 56
2 jumps found. (Code = 43) Position 1 = 59, Position 2 = 65
Branch analysis from position: 59
1 jumps found. (Code = 42) Position 1 = 66
Branch analysis from position: 66
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 65
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 55
2 jumps found. (Code = 43) Position 1 = 59, Position 2 = 65
Branch analysis from position: 59
Branch analysis from position: 65
Branch analysis from position: 45
2 jumps found. (Code = 43) Position 1 = 49, Position 2 = 55
Branch analysis from position: 49
Branch analysis from position: 55
Branch analysis from position: 35
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 45
Branch analysis from position: 39
Branch analysis from position: 45
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 35
Branch analysis from position: 26
Branch analysis from position: 35
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 22
Branch analysis from position: 16
Branch analysis from position: 22
filename:       /in/32KLd
function name:  (null)
number of ops:  79
compiled vars:  !0 = $tmp, !1 = $users
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   13     1        INIT_FCALL                                               'trim'
          2        FETCH_DIM_R                                      ~4      !0, 'uuid'
          3        SEND_VAL                                                 ~4
          4        DO_ICALL                                         $5      
          5        STRLEN                                           ~6      $5
          6      > JMPZ                                                     ~6, ->10
          7    >   FETCH_DIM_R                                      ~7      !0, 'uuid'
          8        QM_ASSIGN                                        ~8      ~7
          9      > JMP                                                      ->13
         10    >   INIT_STATIC_METHOD_CALL                                  'Brainbits_Util_Uuid', 'generate'
         11        DO_FCALL                                      0  $9      
         12        QM_ASSIGN                                        ~8      $9
         13    >   INIT_ARRAY                                       ~10     ~8, 'ckey'
   14    14        FETCH_DIM_R                                      ~11     !0, 'language'
         15      > JMPZ                                                     ~11, ->22
         16    >   INIT_FCALL                                               'trim'
         17        FETCH_DIM_R                                      ~12     !0, 'language'
         18        SEND_VAL                                                 ~12
         19        DO_ICALL                                         $13     
         20        QM_ASSIGN                                        ~14     $13
         21      > JMP                                                      ->23
         22    >   QM_ASSIGN                                        ~14     'de'
         23    >   ADD_ARRAY_ELEMENT                                ~10     ~14, 'language'
   15    24        FETCH_DIM_R                                      ~15     !0, 'format'
         25      > JMPZ                                                     ~15, ->35
         26    >   INIT_FCALL                                               'trim'
         27        INIT_FCALL                                               'strtolower'
         28        FETCH_DIM_R                                      ~16     !0, 'format'
         29        SEND_VAL                                                 ~16
         30        DO_ICALL                                         $17     
         31        SEND_VAR                                                 $17
         32        DO_ICALL                                         $18     
         33        QM_ASSIGN                                        ~19     $18
         34      > JMP                                                      ->36
         35    >   QM_ASSIGN                                        ~19     'html'
         36    >   ADD_ARRAY_ELEMENT                                ~10     ~19, 'newsletter_format'
   16    37        FETCH_DIM_R                                      ~20     !0, 'adress'
         38      > JMPZ                                                     ~20, ->45
         39    >   INIT_FCALL                                               'trim'
         40        FETCH_DIM_R                                      ~21     !0, 'adress'
         41        SEND_VAL                                                 ~21
         42        DO_ICALL                                         $22     
         43        QM_ASSIGN                                        ~23     $22
         44      > JMP                                                      ->46
         45    >   QM_ASSIGN                                        ~23     ''
         46    >   ADD_ARRAY_ELEMENT                                ~10     ~23, 'adress'
   17    47        FETCH_DIM_R                                      ~24     !0, 'lastname'
         48      > JMPZ                                                     ~24, ->55
         49    >   INIT_FCALL                                               'trim'
         50        FETCH_DIM_R                                      ~25     !0, 'lastname'
         51        SEND_VAL                                                 ~25
         52        DO_ICALL                                         $26     
         53        QM_ASSIGN                                        ~27     $26
         54      > JMP                                                      ->56
         55    >   QM_ASSIGN                                        ~27     ''
         56    >   ADD_ARRAY_ELEMENT                                ~10     ~27, 'last_name'
   18    57        FETCH_DIM_R                                      ~28     !0, 'firstname'
         58      > JMPZ                                                     ~28, ->65
         59    >   INIT_FCALL                                               'trim'
         60        FETCH_DIM_R                                      ~29     !0, 'firstname'
         61        SEND_VAL                                                 ~29
         62        DO_ICALL                                         $30     
         63        QM_ASSIGN                                        ~31     $30
         64      > JMP                                                      ->66
         65    >   QM_ASSIGN                                        ~31     ''
         66    >   ADD_ARRAY_ELEMENT                                ~10     ~31, 'first_name'
   19    67        INIT_FCALL                                               'trim'
         68        FETCH_DIM_R                                      ~32     !0, 'email'
         69        SEND_VAL                                                 ~32
         70        DO_ICALL                                         $33     
         71        ADD_ARRAY_ELEMENT                                ~10     $33, 'email'
   20    72        ADD_ARRAY_ELEMENT                                ~10     '0', 'mobile'
   12    73        ASSIGN_DIM                                               !1
   20    74        OP_DATA                                                  ~10
   24    75        INIT_FCALL                                               'var_dump'
         76        SEND_VAR                                                 !1
         77        DO_ICALL                                                 
         78      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
130.62 ms | 1409 KiB | 19 Q