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); reset($arr); 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 = 13, Position 2 = 19
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 19
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
Branch analysis from position: 8
filename:       /in/e3Cll
function name:  (null)
number of ops:  21
compiled vars:  !0 = $arr, !1 = $v, !2 = $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                                      $5      !0, ->8
          5    > > FE_FETCH_RW                                              $5, !1, ->8
    5     6    >   ASSIGN_OP                                     8          !1, '_clgt%3F'
    4     7      > JMP                                                      ->5
          8    >   FE_FREE                                                  $5
    8     9        INIT_FCALL                                               'reset'
         10        SEND_REF                                                 !0
         11        DO_ICALL                                                 
    9    12      > FE_RESET_R                                       $8      !0, ->19
         13    > > FE_FETCH_R                                       ~9      $8, !1, ->19
         14    >   ASSIGN                                                   !2, ~9
   10    15        CONCAT                                           ~11     !2, '+%3E+'
         16        CONCAT                                           ~12     ~11, !1
         17        ECHO                                                     ~12
    9    18      > JMP                                                      ->13
         19    >   FE_FREE                                                  $8
   11    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.22 ms | 1387 KiB | 15 Q