3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dataset = array("a" => "one", "b" => "two"); reset($dataset); while ($a = current($dataset)) { next($dataset); if ($a == "one") { $dataset[$a] = "three"; } }
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 = 5
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 5
Branch analysis from position: 17
Branch analysis from position: 5
Branch analysis from position: 12
filename:       /in/5U5YL
function name:  (null)
number of ops:  18
compiled vars:  !0 = $dataset, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'reset'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                                 
    5     4      > JMP                                                      ->12
    6     5    >   INIT_FCALL                                               'next'
          6        SEND_REF                                                 !0
          7        DO_ICALL                                                 
    7     8        IS_EQUAL                                                 !1, 'one'
          9      > JMPZ                                                     ~5, ->12
    8    10    >   ASSIGN_DIM                                               !0, !1
         11        OP_DATA                                                  'three'
    5    12    >   INIT_FCALL                                               'current'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $7      
         15        ASSIGN                                           ~8      !1, $7
         16      > JMPNZ                                                    ~8, ->5
   10    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.6 ms | 1395 KiB | 19 Q