3v4l.org

run code in 300+ PHP versions simultaneously
<?php $jsondata = '{ "success": false, "error": "Vfst\\Ired\\CMISBundle\\CMIS\\Exception\\InvalidArgumentException", "message": "Test", "code": "400", "trace":""}'; var_dump(json_decode($jsondata)); var_dump(json_last_error(), json_last_error_msg()); var_dump( mb_detect_encoding($jsondata) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fPkva
function name:  (null)
number of ops:  22
compiled vars:  !0 = $jsondata
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B+%22success%22%3A+false%2C+%22error%22%3A+%22Vfst%5CIred%5CCMISBundle%5CCMIS%5CException%5CInvalidArgumentException%22%2C+%22message%22%3A+%22Test%22%2C+%22code%22%3A+%22400%22%2C+%22trace%22%3A%22%22%7D'
    4     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'json_decode'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'json_last_error'
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        INIT_FCALL                                               'json_last_error_msg'
         12        DO_ICALL                                         $5      
         13        SEND_VAR                                                 $5
         14        DO_ICALL                                                 
    6    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'mb_detect_encoding'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $7      
         19        SEND_VAR                                                 $7
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.72 ms | 1395 KiB | 23 Q