3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo __DIR__; $content = null; //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 = 6, Position 2 = 19
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 16
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/kL3la
function name:  (null)
number of ops:  23
compiled vars:  !0 = $content, !1 = $isPlain, !2 = $dataArr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     '%2Fin'
    5     1        ASSIGN                                                   !0, null
    6     2        ASSIGN                                                   !1, <false>
    8     3        TYPE_CHECK                                  128  ~5      !0
          4        BOOL_NOT                                         ~6      ~5
          5      > JMPZ                                                     ~6, ->19
    9     6    >   INIT_FCALL                                               'json_decode'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !2, $7
   10    11        TYPE_CHECK                                    2          !2
         12      > JMPZ                                                     ~9, ->16
         13    >   INIT_ARRAY                                       ~10     !0
         14        QM_ASSIGN                                        ~11     ~10
         15      > JMP                                                      ->17
         16    >   QM_ASSIGN                                        ~11     !2
         17    >   ASSIGN                                                   !0, ~11
   11    18        ASSIGN                                                   !1, <true>
   13    19    >   INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.17 ms | 1387 KiB | 17 Q