3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '{"div_class":"deal","pinpai_link":""},{"div_class":"deal","pinpai_link":""}'; print_r( json_decode ( "[$text]", true ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0hREu
function name:  (null)
number of ops:  12
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%22div_class%22%3A%22deal%22%2C%22pinpai_link%22%3A%22%22%7D%2C%7B%22div_class%22%3A%22deal%22%2C%22pinpai_link%22%3A%22%22%7D'
    4     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'json_decode'
          3        ROPE_INIT                                     3  ~3      '%5B'
          4        ROPE_ADD                                      1  ~3      ~3, !0
          5        ROPE_END                                      2  ~2      ~3, '%5D'
          6        SEND_VAL                                                 ~2
          7        SEND_VAL                                                 <true>
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.59 ms | 1398 KiB | 17 Q