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/4KUrM
function name:  (null)
number of ops:  24
compiled vars:  !0 = $array
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                                         $3      
          8        CONCAT                                           ~4      $3, '+-%3E+'
          9        ECHO                                                     ~4
    8    10        INIT_FCALL                                               'current'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $5      
         13        CONCAT                                           ~6      $5, '%3Cbr+%2F%3E'
         14        ECHO                                                     ~6
    6    15        INIT_FCALL                                               'next'
         16        SEND_REF                                                 !0
         17        DO_ICALL                                                 
         18    >   INIT_FCALL                                               'key'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $8      
         21        TYPE_CHECK                                  1020          $8
         22      > JMPNZ                                                    ~9, ->5
   12    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.21 ms | 1387 KiB | 19 Q