3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( json_decode('{"test":["1","2"]}', true)); var_dump(json_decode('[]'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RLjMu
function name:  (null)
number of ops:  14
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                                                 '%7B%22test%22%3A%5B%221%22%2C%222%22%5D%7D'
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                                 
    4     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'json_decode'
          9        SEND_VAL                                                 '%5B%5D'
         10        DO_ICALL                                         $2      
         11        SEND_VAR                                                 $2
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.84 ms | 1394 KiB | 17 Q