3v4l.org

run code in 300+ PHP versions simultaneously
<?php json_decode('1'); var_dump(json_last_error()); json_decode(' '); var_dump(json_last_error()); json_decode('X'); var_dump(json_last_error()); json_decode(' '); var_dump(json_last_error());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3jFHX
function name:  (null)
number of ops:  33
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 '1'
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'json_last_error'
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                                 
    5     8        INIT_FCALL                                               'json_decode'
          9        SEND_VAL                                                 '+'
         10        DO_ICALL                                                 
    6    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'json_last_error'
         13        DO_ICALL                                         $4      
         14        SEND_VAR                                                 $4
         15        DO_ICALL                                                 
    8    16        INIT_FCALL                                               'json_decode'
         17        SEND_VAL                                                 'X'
         18        DO_ICALL                                                 
    9    19        INIT_FCALL                                               'var_dump'
         20        INIT_FCALL                                               'json_last_error'
         21        DO_ICALL                                         $7      
         22        SEND_VAR                                                 $7
         23        DO_ICALL                                                 
   11    24        INIT_FCALL                                               'json_decode'
         25        SEND_VAL                                                 '+'
         26        DO_ICALL                                                 
   12    27        INIT_FCALL                                               'var_dump'
         28        INIT_FCALL                                               'json_last_error'
         29        DO_ICALL                                         $10     
         30        SEND_VAR                                                 $10
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.56 ms | 1396 KiB | 19 Q