3v4l.org

run code in 300+ PHP versions simultaneously
<?php json_decode(""); echo /*json_last_error_msg(),*/ json_last_error(), "\n"; json_decode("null"); echo /*json_last_error_msg(),*/ json_last_error(), "\n"; json_decode("NULL"); 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/1uO3P
function name:  (null)
number of ops:  22
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 ''
          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                                                 'null'
          9        DO_ICALL                                                 
    9    10        INIT_FCALL                                               'json_last_error'
         11        DO_ICALL                                         $3      
         12        ECHO                                                     $3
         13        ECHO                                                     '%0A'
   11    14        INIT_FCALL                                               'json_decode'
         15        SEND_VAL                                                 'NULL'
         16        DO_ICALL                                                 
   13    17        INIT_FCALL                                               'json_last_error'
         18        DO_ICALL                                         $5      
         19        ECHO                                                     $5
         20        ECHO                                                     '%0A'
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.64 ms | 1395 KiB | 17 Q