3v4l.org

run code in 300+ PHP versions simultaneously
<?php //iterator $array = array('Obst' => 'Banane','Gemüse' => 'Tomate','Teigwaren' => 'Nudeln'); #$beginn = microtime(true); #end($array); for(current($array); key($array) !== Null; next($array)) { echo key($array). " -> "; echo current($array)."<br />"; } #$dauer = microtime(true) - $beginn; echo "Verarbeitung des Skripts (iterator): $dauer Sek.<br />"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 5
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 5
Branch analysis from position: 23
Branch analysis from position: 5
filename:       /in/drYc0
function name:  (null)
number of ops:  28
compiled vars:  !0 = $array, !1 = $dauer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    6     1        INIT_FCALL                                               'current'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
          4      > JMP                                                      ->18
    7     5    >   INIT_FCALL                                               'key'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        CONCAT                                           ~5      $4, '+-%3E+'
          9        ECHO                                                     ~5
    8    10        INIT_FCALL                                               'current'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $6      
         13        CONCAT                                           ~7      $6, '%3Cbr+%2F%3E'
         14        ECHO                                                     ~7
    6    15        INIT_FCALL                                               'next'
         16        SEND_REF                                                 !0
         17        DO_ICALL                                                 
         18    >   INIT_FCALL                                               'key'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $9      
         21        TYPE_CHECK                                  1020          $9
         22      > JMPNZ                                                    ~10, ->5
   11    23    >   ROPE_INIT                                     3  ~12     'Verarbeitung+des+Skripts+%28iterator%29%3A+'
         24        ROPE_ADD                                      1  ~12     ~12, !1
         25        ROPE_END                                      2  ~11     ~12, '+Sek.%3Cbr+%2F%3E'
         26        ECHO                                                     ~11
   12    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.58 ms | 1395 KiB | 19 Q