3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.97 ms | 1394 KiB | 19 Q