3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(json_last_error()); json_decode(''); var_dump(json_last_error()); json_decode('[};]'); 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/fckal
function name:  (null)
number of ops:  30
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'json_last_error'
          2        DO_ICALL                                         $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
    3     5        INIT_FCALL                                               'json_decode'
          6        SEND_VAL                                                 ''
          7        DO_ICALL                                                 
    4     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'json_last_error'
         10        DO_ICALL                                         $3      
         11        SEND_VAR                                                 $3
         12        DO_ICALL                                                 
    5    13        INIT_FCALL                                               'json_decode'
         14        SEND_VAL                                                 '%5B%7D%3B%5D'
         15        DO_ICALL                                                 
    6    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'json_last_error'
         18        DO_ICALL                                         $6      
         19        SEND_VAR                                                 $6
         20        DO_ICALL                                                 
    7    21        INIT_FCALL                                               'json_decode'
         22        SEND_VAL                                                 ''
         23        DO_ICALL                                                 
    8    24        INIT_FCALL                                               'var_dump'
         25        INIT_FCALL                                               'json_last_error'
         26        DO_ICALL                                         $9      
         27        SEND_VAR                                                 $9
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.59 ms | 1395 KiB | 19 Q