3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '{"id":1,"channel":"1","text":"Hello World!"}{"id":2,"channel":"1","text":"Hello World!"}{"id":2,"channel":"1","text":"Hello World!"}'; $str = str_replace('}{', '},{', $str); $str = '[' . $str . ']'; print_r(json_decode($str));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BNVTg
function name:  (null)
number of ops:  17
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%22id%22%3A1%2C%22channel%22%3A%221%22%2C%22text%22%3A%22Hello+World%21%22%7D%7B%22id%22%3A2%2C%22channel%22%3A%221%22%2C%22text%22%3A%22Hello+World%21%22%7D%7B%22id%22%3A2%2C%22channel%22%3A%221%22%2C%22text%22%3A%22Hello+World%21%22%7D'
    5     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '%7D%7B'
          3        SEND_VAL                                                 '%7D%2C%7B'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    6     7        CONCAT                                           ~4      '%5B', !0
          8        CONCAT                                           ~5      ~4, '%5D'
          9        ASSIGN                                                   !0, ~5
    8    10        INIT_FCALL                                               'print_r'
         11        INIT_FCALL                                               'json_decode'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $7      
         14        SEND_VAR                                                 $7
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.86 ms | 1394 KiB | 19 Q