3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array("one", "two", "three"); reset($arr); foreach($arr as &$v){ $v .= "_clgt?"; } //var_dump($arr); //unset($v); $v = &$c; foreach($arr as $k => $v){ echo $k . " > " . $v; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
2 jumps found. (Code = 126) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 8
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 17
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 17
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
Branch analysis from position: 8
filename:       /in/bXfMM
function name:  (null)
number of ops:  19
compiled vars:  !0 = $arr, !1 = $v, !2 = $c, !3 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'reset'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                                 
    4     4      > FE_RESET_RW                                      $6      !0, ->8
          5    > > FE_FETCH_RW                                              $6, !1, ->8
    5     6    >   ASSIGN_OP                                     8          !1, '_clgt%3F'
    4     7      > JMP                                                      ->5
          8    >   FE_FREE                                                  $6
    9     9        ASSIGN_REF                                               !1, !2
   10    10      > FE_RESET_R                                       $9      !0, ->17
         11    > > FE_FETCH_R                                       ~10     $9, !1, ->17
         12    >   ASSIGN                                                   !3, ~10
   11    13        CONCAT                                           ~12     !3, '+%3E+'
         14        CONCAT                                           ~13     ~12, !1
         15        ECHO                                                     ~13
   10    16      > JMP                                                      ->11
         17    >   FE_FREE                                                  $9
   12    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.33 ms | 1395 KiB | 15 Q