3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array["a"] = "Foo"; $array["b"] = ""; $array["c"] = "Baz"; $array["d"] = "Wom"; print end($array) . "\n"; while($val = prev($array)) { print $val . "\n"; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 14
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 14
Branch analysis from position: 21
Branch analysis from position: 14
filename:       /in/j573o
function name:  (null)
number of ops:  22
compiled vars:  !0 = $array, !1 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 'a'
          1        OP_DATA                                                  'Foo'
    3     2        ASSIGN_DIM                                               !0, 'b'
          3        OP_DATA                                                  ''
    4     4        ASSIGN_DIM                                               !0, 'c'
          5        OP_DATA                                                  'Baz'
    5     6        ASSIGN_DIM                                               !0, 'd'
          7        OP_DATA                                                  'Wom'
    6     8        INIT_FCALL                                               'end'
          9        SEND_REF                                                 !0
         10        DO_ICALL                                         $6      
         11        CONCAT                                           ~7      $6, '%0A'
         12        ECHO                                                     ~7
    8    13      > JMP                                                      ->16
    9    14    >   CONCAT                                           ~8      !1, '%0A'
         15        ECHO                                                     ~8
    8    16    >   INIT_FCALL                                               'prev'
         17        SEND_REF                                                 !0
         18        DO_ICALL                                         $9      
         19        ASSIGN                                           ~10     !1, $9
         20      > JMPNZ                                                    ~10, ->14
   11    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.78 ms | 1395 KiB | 17 Q