3v4l.org

run code in 300+ PHP versions simultaneously
<?php json_decode("\00invalid json"); var_dump(json_last_error()); json_decode("[]", true, 512, JSON_THROW_ON_ERROR); var_dump(json_last_error());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gqbYL
function name:  (null)
number of ops:  20
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 '%00invalid+json'
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'json_last_error'
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                                 
    6     8        INIT_FCALL                                               'json_decode'
          9        SEND_VAL                                                 '%5B%5D'
         10        SEND_VAL                                                 <true>
         11        SEND_VAL                                                 512
         12        SEND_VAL                                                 4194304
         13        DO_ICALL                                                 
    7    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'json_last_error'
         16        DO_ICALL                                         $4      
         17        SEND_VAR                                                 $4
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.34 ms | 1395 KiB | 19 Q