3v4l.org

run code in 300+ PHP versions simultaneously
<?php json_decode("\x10\x20"); echo /*json_last_error_msg(), */json_last_error(), "\n"; json_decode(""); echo /*json_last_error_msg(), */json_last_error(), "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LbupX
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 '%10+'
          2        DO_ICALL                                                 
    5     3        INIT_FCALL                                               'json_last_error'
          4        DO_ICALL                                         $1      
          5        ECHO                                                     $1
          6        ECHO                                                     '%0A'
    7     7        INIT_FCALL                                               'json_decode'
          8        SEND_VAL                                                 ''
          9        DO_ICALL                                                 
    9    10        INIT_FCALL                                               'json_last_error'
         11        DO_ICALL                                         $3      
         12        ECHO                                                     $3
         13        ECHO                                                     '%0A'
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.56 ms | 1394 KiB | 17 Q