3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach ($array as &$value) {} // by reference echo implode(',', $array). "\n"; foreach ($array as $value) {} // by value (i.e., copy) echo implode(',', $array). "\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 1, Position 2 = 3
Branch analysis from position: 1
2 jumps found. (Code = 126) Position 1 = 2, Position 2 = 3
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 1
Branch analysis from position: 1
Branch analysis from position: 3
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
Branch analysis from position: 3
filename:       /in/Tmkrr
function name:  (null)
number of ops:  21
compiled vars:  !0 = $array, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > FE_RESET_RW                                      $2      !0, ->3
          1    > > FE_FETCH_RW                                              $2, !1, ->3
          2    > > JMP                                                      ->1
          3    >   FE_FREE                                                  $2
    5     4        INIT_FCALL                                               'implode'
          5        SEND_VAL                                                 '%2C'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        CONCAT                                           ~4      $3, '%0A'
          9        ECHO                                                     ~4
    7    10      > FE_RESET_R                                       $5      !0, ->13
         11    > > FE_FETCH_R                                               $5, !1, ->13
         12    > > JMP                                                      ->11
         13    >   FE_FREE                                                  $5
    8    14        INIT_FCALL                                               'implode'
         15        SEND_VAL                                                 '%2C'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $6      
         18        CONCAT                                           ~7      $6, '%0A'
         19        ECHO                                                     ~7
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.09 ms | 1010 KiB | 14 Q