3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 'Frucht1' => 'Apfel', 'Frucht2' => 'Orange', 'Frucht3' => 'Grape', 'Frucht4' => 'Apfel', 'Frucht5' => 'Apfel'); // Diese Schleife gibt alle Schlüssel des assoziativen // Arrays aus, deren Wert "Apfel" ist. while ($fruit_name = current($array)) { if ($fruit_name == 'Apfel') { echo key($array).'<br />'; } next($array); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 2
Branch analysis from position: 17
Branch analysis from position: 2
Branch analysis from position: 9
filename:       /in/2Jtta
function name:  (null)
number of ops:  18
compiled vars:  !0 = $array, !1 = $fruit_name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   12     1      > JMP                                                      ->12
   13     2    >   IS_EQUAL                                                 !1, 'Apfel'
          3      > JMPZ                                                     ~3, ->9
   14     4    >   INIT_FCALL                                               'key'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        CONCAT                                           ~5      $4, '%3Cbr+%2F%3E'
          8        ECHO                                                     ~5
   16     9    >   INIT_FCALL                                               'next'
         10        SEND_REF                                                 !0
         11        DO_ICALL                                                 
   12    12    >   INIT_FCALL                                               'current'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $7      
         15        ASSIGN                                           ~8      !1, $7
         16      > JMPNZ                                                    ~8, ->2
   17    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.42 ms | 1395 KiB | 19 Q