3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rows = [ ['first_name' => 'Hi'] ]; foreach ($rows as $row) { echo 'value="' . $row['first_name']. '"'; } echo \PHP_EOL; foreach ($rows as $row) { echo <<<EOT value="{$row['first_name']}" EOT; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 8
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 8
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 8
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 18
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 18
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
Branch analysis from position: 8
filename:       /in/7K5ap
function name:  (null)
number of ops:  20
compiled vars:  !0 = $rows, !1 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    7     1      > FE_RESET_R                                       $3      !0, ->8
          2    > > FE_FETCH_R                                               $3, !1, ->8
    8     3    >   FETCH_DIM_R                                      ~4      !1, 'first_name'
          4        CONCAT                                           ~5      'value%3D%22', ~4
          5        CONCAT                                           ~6      ~5, '%22'
          6        ECHO                                                     ~6
    7     7      > JMP                                                      ->2
          8    >   FE_FREE                                                  $3
   11     9        ECHO                                                     '%0A'
   13    10      > FE_RESET_R                                       $7      !0, ->18
         11    > > FE_FETCH_R                                               $7, !1, ->18
   15    12    >   ROPE_INIT                                     3  ~10     'value%3D%22'
         13        FETCH_DIM_R                                      ~8      !1, 'first_name'
         14        ROPE_ADD                                      1  ~10     ~10, ~8
         15        ROPE_END                                      2  ~9      ~10, '%22'
         16        ECHO                                                     ~9
   13    17      > JMP                                                      ->11
         18    >   FE_FREE                                                  $7
   18    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.68 ms | 995 KiB | 13 Q