3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"a":TRUE}'; $jsoned = @json_decode($json); var_dump($jsoned, json_last_error()); var_dump( JSON_ERROR_NONE, JSON_ERROR_DEPTH, JSON_ERROR_STATE_MISMATCH, 'ctrl', JSON_ERROR_CTRL_CHAR, JSON_ERROR_SYNTAX, JSON_ERROR_UTF8, JSON_ERROR_RECURSION, JSON_ERROR_INF_OR_NAN, JSON_ERROR_UNSUPPORTED_TYPE );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4o86f
function name:  (null)
number of ops:  26
compiled vars:  !0 = $json, !1 = $jsoned
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '%7B%22a%22%3ATRUE%7D'
    5     1        BEGIN_SILENCE                                    ~3      
          2        INIT_FCALL                                               'json_decode'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        END_SILENCE                                              ~3
          6        ASSIGN                                                   !1, $4
    6     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        INIT_FCALL                                               'json_last_error'
         10        DO_ICALL                                         $6      
         11        SEND_VAR                                                 $6
         12        DO_ICALL                                                 
    7    13        INIT_FCALL                                               'var_dump'
    8    14        SEND_VAL                                                 0
    9    15        SEND_VAL                                                 1
   10    16        SEND_VAL                                                 2
   11    17        SEND_VAL                                                 'ctrl'
         18        SEND_VAL                                                 3
   12    19        SEND_VAL                                                 4
   13    20        SEND_VAL                                                 5
   14    21        SEND_VAL                                                 6
   15    22        SEND_VAL                                                 7
   16    23        SEND_VAL                                                 8
         24        DO_ICALL                                                 
   17    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.15 ms | 1395 KiB | 19 Q