3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ar = array("re" => 12, "er" => 45, "rt" => 66 ); while (current($ar) == 45) { each($ar); } echo current($ar);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 2
Branch analysis from position: 10
Branch analysis from position: 2
filename:       /in/KCPvt
function name:  (null)
number of ops:  15
compiled vars:  !0 = $ar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1      > JMP                                                      ->5
    6     2    >   INIT_FCALL_BY_NAME                                       'each'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0          
    5     5    >   INIT_FCALL                                               'current'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        IS_EQUAL                                                 $3, 45
          9      > JMPNZ                                                    ~4, ->2
    9    10    >   INIT_FCALL                                               'current'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $5      
         13        ECHO                                                     $5
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.54 ms | 1386 KiB | 18 Q