3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.15 ms | 1395 KiB | 19 Q