3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = json_decode('[ "DE": 2640 ]'); switch(json_last_error()) { case JSON_ERROR_DEPTH: echo ' - Maximale Stacktiefe überschritten'; break; case JSON_ERROR_CTRL_CHAR: echo ' - Unerwartetes Steuerzeichen gefunden'; break; case JSON_ERROR_SYNTAX: echo ' - Syntaxfehler, ungültiges JSON'; break; case JSON_ERROR_NONE: echo ' - Keine Fehler'; break; } echo PHP_EOL; var_export($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 17
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 19
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 21
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
filename:       /in/QsgUV
function name:  (null)
number of ops:  29
compiled vars:  !0 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 '%5B+%22DE%22%3A+2640+%5D'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    4     4        INIT_FCALL                                               'json_last_error'
          5        DO_ICALL                                         $3      
          6        CASE                                                     $3, 1
          7      > JMPNZ                                                    ~4, ->15
          8    >   CASE                                                     $3, 3
          9      > JMPNZ                                                    ~4, ->17
         10    >   CASE                                                     $3, 4
         11      > JMPNZ                                                    ~4, ->19
         12    >   CASE                                                     $3, 0
         13      > JMPNZ                                                    ~4, ->21
         14    > > JMP                                                      ->23
    7    15    >   ECHO                                                     '+-+Maximale+Stacktiefe+%C3%BCberschritten'
    8    16      > JMP                                                      ->23
   10    17    >   ECHO                                                     '+-+Unerwartetes+Steuerzeichen+gefunden'
   11    18      > JMP                                                      ->23
   13    19    >   ECHO                                                     '+-+Syntaxfehler%2C+ung%C3%BCltiges+JSON'
   14    20      > JMP                                                      ->23
   16    21    >   ECHO                                                     '+-+Keine+Fehler'
   17    22      > JMP                                                      ->23
         23    >   FREE                                                     $3
   20    24        ECHO                                                     '%0A'
   21    25        INIT_FCALL                                               'var_export'
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.46 ms | 1396 KiB | 19 Q