3v4l.org

run code in 300+ PHP versions simultaneously
<?php $post = '{ "test1_key":"test1_val", "test2_key":"test2_val", "test3_key":"test3_val" } { test4_key: test4_val } { "json_obj_3":[ {"test1":"test2","test3":"test4"} ] }'; print_r(json_decode($post, true));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TrJd9
function name:  (null)
number of ops:  9
compiled vars:  !0 = $post
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%0A++++%22test1_key%22%3A%22test1_val%22%2C%0A++++%22test2_key%22%3A%22test2_val%22%2C%0A++++%22test3_key%22%3A%22test3_val%22%0A%7D%0A%7B%0A+++++test4_key%3A+test4_val%0A%7D%0A%7B%0A++++%22json_obj_3%22%3A%5B%0A++++++++%7B%22test1%22%3A%22test2%22%2C%22test3%22%3A%22test4%22%7D%0A++++%5D%0A%7D'
   17     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'json_decode'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 <true>
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.62 ms | 1394 KiB | 17 Q