3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = 324; //isset($data['items']) ? $data['items'] : $value['items']; $isPlain = false; if (!is_array($content)) { $dataArr = json_decode($content, true); $content = (null === $dataArr) ? array($content) : $dataArr; $isPlain = true; } var_dump( $content);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 18
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/B6bXM
function name:  (null)
number of ops:  22
compiled vars:  !0 = $content, !1 = $isPlain, !2 = $dataArr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 324
    5     1        ASSIGN                                                   !1, <false>
    7     2        TYPE_CHECK                                  128  ~5      !0
          3        BOOL_NOT                                         ~6      ~5
          4      > JMPZ                                                     ~6, ->18
    8     5    >   INIT_FCALL                                               'json_decode'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 <true>
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !2, $7
    9    10        TYPE_CHECK                                    2          !2
         11      > JMPZ                                                     ~9, ->15
         12    >   INIT_ARRAY                                       ~10     !0
         13        QM_ASSIGN                                        ~11     ~10
         14      > JMP                                                      ->16
         15    >   QM_ASSIGN                                        ~11     !2
         16    >   ASSIGN                                                   !0, ~11
   10    17        ASSIGN                                                   !1, <true>
   12    18    >   INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.32 ms | 1395 KiB | 17 Q