3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST['area'] = '[{"text":"DATA1"},{"text":"DATA2"},{"text":"DATA3"}]'; foreach (json_decode($_POST['area']) as $row) { echo $row->text . "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/BMruV
function name:  (null)
number of ops:  16
compiled vars:  !0 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                      global              $1      '_POST'
          1        ASSIGN_DIM                                               $1, 'area'
          2        OP_DATA                                                  '%5B%7B%22text%22%3A%22DATA1%22%7D%2C%7B%22text%22%3A%22DATA2%22%7D%2C%7B%22text%22%3A%22DATA3%22%7D%5D'
    5     3        INIT_FCALL                                               'json_decode'
          4        FETCH_R                      global              ~3      '_POST'
          5        FETCH_DIM_R                                      ~4      ~3, 'area'
          6        SEND_VAL                                                 ~4
          7        DO_ICALL                                         $5      
          8      > FE_RESET_R                                       $6      $5, ->14
          9    > > FE_FETCH_R                                               $6, !0, ->14
    6    10    >   FETCH_OBJ_R                                      ~7      !0, 'text'
         11        CONCAT                                           ~8      ~7, '%0A'
         12        ECHO                                                     ~8
    5    13      > JMP                                                      ->9
         14    >   FE_FREE                                                  $6
    7    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
230.37 ms | 997 KiB | 14 Q