3v4l.org

run code in 300+ PHP versions simultaneously
<?php $source = ['a' => 'AA', 'b' => 'BB', 'c' => 'CC']; $info = list($key, $value) = reset($source); var_dump($info); for ($index = 0; $index < 10; $index++) { $info = next($source); if ($info === false) break; var_dump($info); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 14
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 21
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 14
Branch analysis from position: 27
Branch analysis from position: 14
filename:       /in/iYcL1
function name:  (null)
number of ops:  28
compiled vars:  !0 = $source, !1 = $info, !2 = $key, !3 = $value, !4 = $index
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                                         $6      
          4        FETCH_LIST_R                                     $7      $6, 0
          5        ASSIGN                                                   !2, $7
          6        FETCH_LIST_R                                     $9      $6, 1
          7        ASSIGN                                                   !3, $9
          8        ASSIGN                                                   !1, $6
    4     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
    6    12        ASSIGN                                                   !4, 0
         13      > JMP                                                      ->25
    7    14    >   INIT_FCALL                                               'next'
         15        SEND_REF                                                 !0
         16        DO_ICALL                                         $14     
         17        ASSIGN                                                   !1, $14
    8    18        TYPE_CHECK                                    4          !1
         19      > JMPZ                                                     ~16, ->21
         20    > > JMP                                                      ->27
    9    21    >   INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                                 
    6    24        PRE_INC                                                  !4
         25    >   IS_SMALLER                                               !4, 10
         26      > JMPNZ                                                    ~19, ->14
   10    27    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.18 ms | 1396 KiB | 19 Q