3v4l.org

run code in 500+ PHP versions simultaneously
<?php $result = [1,2,3,4]; $row = end($result); do{ echo $row."\n"; }while($row = prev($result));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 5
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/NINss
function name:  (null)
number of ops:  13
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
    6     5    >   CONCAT                                               ~5      !1, '%0A'
          6        ECHO                                                         ~5
    9     7        INIT_FCALL                                                   'prev'
          8        SEND_REF                                                     !0
          9        DO_ICALL                                             $6      
         10        ASSIGN                                               ~7      !1, $6
         11      > JMPNZ                                                        ~7, ->5
         12    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.69 ms | 2079 KiB | 15 Q