3v4l.org

run code in 300+ PHP versions simultaneously
<?php $page['thisPage'] = $data['thisPage'] = 'Add Asset'; $page['parent'] = (isset($_POST['retClass'])?($_POST['retClass']):('')); if(isset($page['parent']) and ($page['parent'] != '')): $page['hasParent'] = 'true'; endif; $page['page'] = ''; echo json_encode($page);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
Branch analysis from position: 19
Branch analysis from position: 11
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
Branch analysis from position: 19
filename:       /in/7bSlT
function name:  (null)
number of ops:  29
compiled vars:  !0 = $page, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                       ~3      !1, 'thisPage'
          1        OP_DATA                                                  'Add+Asset'
          2        ASSIGN_DIM                                               !0, 'thisPage'
          3        OP_DATA                                                  ~3
    3     4        FETCH_IS                                         ~5      '_POST'
          5        ISSET_ISEMPTY_DIM_OBJ                         0          ~5, 'retClass'
          6      > JMPZ                                                     ~6, ->11
          7    >   FETCH_R                      global              ~7      '_POST'
          8        FETCH_DIM_R                                      ~8      ~7, 'retClass'
          9        QM_ASSIGN                                        ~9      ~8
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~9      ''
         12    >   ASSIGN_DIM                                               !0, 'parent'
         13        OP_DATA                                                  ~9
    4    14        ISSET_ISEMPTY_DIM_OBJ                         0  ~10     !0, 'parent'
         15      > JMPZ_EX                                          ~10     ~10, ->19
         16    >   FETCH_DIM_R                                      ~11     !0, 'parent'
         17        IS_NOT_EQUAL                                     ~12     ~11, ''
         18        BOOL                                             ~10     ~12
         19    > > JMPZ                                                     ~10, ->22
    5    20    >   ASSIGN_DIM                                               !0, 'hasParent'
         21        OP_DATA                                                  'true'
    7    22    >   ASSIGN_DIM                                               !0, 'page'
         23        OP_DATA                                                  ''
    8    24        INIT_FCALL                                               'json_encode'
         25        SEND_VAR                                                 !0
         26        DO_ICALL                                         $15     
         27        ECHO                                                     $15
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.05 ms | 1396 KiB | 15 Q