3v4l.org

run code in 300+ PHP versions simultaneously
<?php $transactionId = "Sok234141341"; $gaClientId = "41233412.31231"; $redisData = "testsrsar"; #$redisData = json_encode([ # 'transactionId' => $transactionId, # 'gaClientId' => $gaClientId # ]); $data = json_decode($redisData); if (json_last_error() !== JSON_ERROR_NONE) { var_dump($redisData); } else { var_dump($data->transactionId); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AJY68
function name:  (null)
number of ops:  20
compiled vars:  !0 = $transactionId, !1 = $gaClientId, !2 = $redisData, !3 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Sok234141341'
    4     1        ASSIGN                                                   !1, '41233412.31231'
    6     2        ASSIGN                                                   !2, 'testsrsar'
   13     3        INIT_FCALL                                               'json_decode'
          4        SEND_VAR                                                 !2
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !3, $7
   15     7        INIT_FCALL                                               'json_last_error'
          8        DO_ICALL                                         $9      
          9        IS_NOT_IDENTICAL                                         $9, 0
         10      > JMPZ                                                     ~10, ->15
   16    11    >   INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
         14      > JMP                                                      ->19
   18    15    >   INIT_FCALL                                               'var_dump'
         16        FETCH_OBJ_R                                      ~12     !3, 'transactionId'
         17        SEND_VAL                                                 ~12
         18        DO_ICALL                                                 
   19    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.95 ms | 1395 KiB | 19 Q