3v4l.org

run code in 300+ PHP versions simultaneously
<?php $counts = ['Type_1'=>1]; $var = range('a', 'z'); foreach($counts as $key => $value){ ${next($var)} = $key . ' => ' . $value; }; echo $a;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 17
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 17
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/Kp78C
function name:  (null)
number of ops:  20
compiled vars:  !0 = $counts, !1 = $var, !2 = $value, !3 = $key, !4 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    6     1        INIT_FCALL                                               'range'
          2        SEND_VAL                                                 'a'
          3        SEND_VAL                                                 'z'
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
    8     6      > FE_RESET_R                                       $8      !0, ->17
          7    > > FE_FETCH_R                                       ~9      $8, !2, ->17
          8    >   ASSIGN                                                   !3, ~9
    9     9        INIT_FCALL                                               'next'
         10        SEND_REF                                                 !1
         11        DO_ICALL                                         $11     
         12        CONCAT                                           ~13     !3, '+%3D%3E+'
         13        CONCAT                                           ~14     ~13, !2
         14        FETCH_W                      local               $12     $11
         15        ASSIGN                                                   $12, ~14
    8    16      > JMP                                                      ->7
         17    >   FE_FREE                                                  $8
   12    18        ECHO                                                     !4
   13    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.66 ms | 1386 KiB | 17 Q