3v4l.org

run code in 500+ PHP versions simultaneously
<?php $result = [1,2,3,4]; $row = end($result); while($row = current($result)){ echo $row."\n\n"; prev($result); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 6
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 6
Branch analysis from position: 16
Branch analysis from position: 6
filename:       /in/No1Rb
function name:  (null)
number of ops:  17
compiled vars:  !0 = $result, !1 = $row
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
    4     1        INIT_FCALL                                                   'end'
          2        SEND_REF                                                     !0
          3        DO_ICALL                                             $3      
          4        ASSIGN                                                       !1, $3
    5     5      > JMP                                                          ->11
    6     6    >   CONCAT                                               ~5      !1, '%0A%0A'
          7        ECHO                                                         ~5
    8     8        INIT_FCALL                                                   'prev'
          9        SEND_REF                                                     !0
         10        DO_ICALL                                                     
    5    11    >   INIT_FCALL                                                   'current'
         12        SEND_VAR                                                     !0
         13        DO_ICALL                                             $7      
         14        ASSIGN                                               ~8      !1, $7
         15      > JMPNZ                                                        ~8, ->6
    9    16    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.18 ms | 2184 KiB | 16 Q