3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.58 ms | 1394 KiB | 19 Q