3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"featureId":"87","checkReq":"true"}'; $uiOptions = json_decode($json,true); print_r($uiOptions); $checkReq = (isset($uiOptions['checkReq'])) ? $uiOptions['checkReq']: false; $req = $checkReq ? $checkReq : 1; var_dump($req);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
Branch analysis from position: 19
filename:       /in/id4PV
function name:  (null)
number of ops:  25
compiled vars:  !0 = $json, !1 = $uiOptions, !2 = $checkReq, !3 = $req
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%22featureId%22%3A%2287%22%2C%22checkReq%22%3A%22true%22%7D'
    4     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
          6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    5     9        ISSET_ISEMPTY_DIM_OBJ                         0          !1, 'checkReq'
         10      > JMPZ                                                     ~8, ->14
         11    >   FETCH_DIM_R                                      ~9      !1, 'checkReq'
         12        QM_ASSIGN                                        ~10     ~9
         13      > JMP                                                      ->15
         14    >   QM_ASSIGN                                        ~10     <false>
         15    >   ASSIGN                                                   !2, ~10
    6    16      > JMPZ                                                     !2, ->19
         17    >   QM_ASSIGN                                        ~12     !2
         18      > JMP                                                      ->20
         19    >   QM_ASSIGN                                        ~12     1
         20    >   ASSIGN                                                   !3, ~12
    7    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !3
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.04 ms | 1396 KiB | 19 Q