3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '{ "time":20211101, "data":" [[1630454700,0.01823,0.01823,0.01823,0.01823,5366.009589], [1630461840,0.01876,0.01877,0.01876,0.01877,5713.905167], [1630462080,0.01877,0.01877,0.01877,0.01877,1039.957378], [1630477560,0.01777,0.01776,0.01778,0.01779,1000.000000]]" }'; $parsed = json_decode($text, true); $data = json_decode($parsed['data'], true); foreach ($data as $i => $row) { foreach ($row as $j => $val) { echo("$val | "); } echo("\n"); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 25
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 25
Branch analysis from position: 14
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 22
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 22
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 22
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
filename:       /in/mSbso
function name:  (null)
number of ops:  27
compiled vars:  !0 = $text, !1 = $parsed, !2 = $data, !3 = $row, !4 = $i, !5 = $val, !6 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B+%22time%22%3A20211101%2C+%22data%22%3A%22+%5B%5B1630454700%2C0.01823%2C0.01823%2C0.01823%2C0.01823%2C5366.009589%5D%2C+%5B1630461840%2C0.01876%2C0.01877%2C0.01876%2C0.01877%2C5713.905167%5D%2C+%5B1630462080%2C0.01877%2C0.01877%2C0.01877%2C0.01877%2C1039.957378%5D%2C+%5B1630477560%2C0.01777%2C0.01776%2C0.01778%2C0.01779%2C1000.000000%5D%5D%22+%7D'
    4     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $8      
          5        ASSIGN                                                   !1, $8
    5     6        INIT_FCALL                                               'json_decode'
          7        FETCH_DIM_R                                      ~10     !1, 'data'
          8        SEND_VAL                                                 ~10
          9        SEND_VAL                                                 <true>
         10        DO_ICALL                                         $11     
         11        ASSIGN                                                   !2, $11
    7    12      > FE_RESET_R                                       $13     !2, ->25
         13    > > FE_FETCH_R                                       ~14     $13, !3, ->25
         14    >   ASSIGN                                                   !4, ~14
    8    15      > FE_RESET_R                                       $16     !3, ->22
         16    > > FE_FETCH_R                                       ~17     $16, !5, ->22
         17    >   ASSIGN                                                   !6, ~17
    9    18        NOP                                                      
         19        FAST_CONCAT                                      ~19     !5, '+%7C+'
         20        ECHO                                                     ~19
    8    21      > JMP                                                      ->16
         22    >   FE_FREE                                                  $16
   11    23        ECHO                                                     '%0A'
    7    24      > JMP                                                      ->13
         25    >   FE_FREE                                                  $13
   12    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.91 ms | 1006 KiB | 14 Q