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) { echo $row.PHP_EOL; $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 = 18
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 18
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/mWtRa
function name:  (null)
number of ops:  20
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, ->18
          6    > > FE_FETCH_R                                               $5, !1, ->18
    6     7    >   CONCAT                                           ~6      !1, '%0A'
          8        ECHO                                                     ~6
    7     9        INIT_FCALL                                               'json_decode'
         10        SEND_VAR                                                 !1
         11        SEND_VAL                                                 <true>
         12        DO_ICALL                                         $7      
         13        ASSIGN                                                   !2, $7
    8    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
    5    17      > JMP                                                      ->6
         18    >   FE_FREE                                                  $5
    9    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.88 ms | 1395 KiB | 19 Q