3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = '{"pid"=>"x", "sender"=>"sender", "createDate"=>"2014-01-01 12:34:12", "status"=>"ok", "error"=>"Error"} {"pid"=>"x", "sender"=>"sender", "createDate"=>"2014-01-01 12:34:12", "status"=>"ok", "error"=>"Error"}'; foreach (explode("\n", $result) as $row) { $json = json_decode($row, true); print_r($json); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 16
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 16
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/inh8f
function name:  (null)
number of ops:  18
compiled vars:  !0 = $result, !1 = $row, !2 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B%22pid%22%3D%3E%22x%22%2C+%22sender%22%3D%3E%22sender%22%2C+%22createDate%22%3D%3E%222014-01-01+12%3A34%3A12%22%2C+%22status%22%3D%3E%22ok%22%2C+%22error%22%3D%3E%22Error%22%7D%0A%7B%22pid%22%3D%3E%22x%22%2C+%22sender%22%3D%3E%22sender%22%2C+%22createDate%22%3D%3E%222014-01-01+12%3A34%3A12%22%2C+%22status%22%3D%3E%22ok%22%2C+%22error%22%3D%3E%22Error%22%7D'
    5     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%0A'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5      > FE_RESET_R                                       $5      $4, ->16
          6    > > FE_FETCH_R                                               $5, !1, ->16
    6     7    >   INIT_FCALL                                               'json_decode'
          8        SEND_VAR                                                 !1
          9        SEND_VAL                                                 <true>
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !2, $6
    7    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
    5    15      > JMP                                                      ->6
         16    >   FE_FREE                                                  $5
    8    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.98 ms | 1395 KiB | 19 Q