3v4l.org

run code in 300+ PHP versions simultaneously
<?php $frutta = array("d"=>"limone", "a"=>"arancia", "b"=>"banana", "c"=>"mela"); asort($frutta); reset($frutta); while (list($chiave, $valore) = each($frutta)) { echo "$chiave = $valore\n"; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 8
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 8
Branch analysis from position: 21
Branch analysis from position: 8
filename:       /in/nOP9B
function name:  (null)
number of ops:  22
compiled vars:  !0 = $frutta, !1 = $chiave, !2 = $valore
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'asort'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'reset'
          5        SEND_REF                                                 !0
          6        DO_ICALL                                                 
    5     7      > JMP                                                      ->13
    6     8    >   ROPE_INIT                                     4  ~7      !1
          9        ROPE_ADD                                      1  ~7      ~7, '+%3D+'
         10        ROPE_ADD                                      2  ~7      ~7, !2
         11        ROPE_END                                      3  ~6      ~7, '%0A'
         12        ECHO                                                     ~6
    5    13    >   INIT_FCALL_BY_NAME                                       'each'
         14        SEND_VAR_EX                                              !0
         15        DO_FCALL                                      0  $9      
         16        FETCH_LIST_R                                     $10     $9, 0
         17        ASSIGN                                                   !1, $10
         18        FETCH_LIST_R                                     $12     $9, 1
         19        ASSIGN                                                   !2, $12
         20      > JMPNZ                                                    $9, ->8
    8    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.14 ms | 1395 KiB | 20 Q