3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('a', 'b', 'c'); /*foreach($a as $k=>$v){ if($k==1) unset($a[$k]); echo $k.' => '.$v.' ('.$a[$k].')'.PHP_EOL; }*/ for($k=0; $k<count($a); $k++){ if($k==1) unset($a[$k]); echo $k.' => '.$v.' ('.$a[$k].')'.PHP_EOL; } print_r($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 3
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 3
Branch analysis from position: 18
Branch analysis from position: 3
Branch analysis from position: 6
filename:       /in/MZO8n
function name:  (null)
number of ops:  22
compiled vars:  !0 = $a, !1 = $k, !2 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
   12     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->15
   13     3    >   IS_EQUAL                                                 !1, 1
          4      > JMPZ                                                     ~5, ->6
   14     5    >   UNSET_DIM                                                !0, !1
   15     6    >   CONCAT                                           ~6      !1, '+%3D%3E+'
          7        CONCAT                                           ~7      ~6, !2
          8        CONCAT                                           ~8      ~7, '+%28'
          9        FETCH_DIM_R                                      ~9      !0, !1
         10        CONCAT                                           ~10     ~8, ~9
         11        CONCAT                                           ~11     ~10, '%29'
         12        CONCAT                                           ~12     ~11, '%0A'
         13        ECHO                                                     ~12
   12    14        PRE_INC                                                  !1
         15    >   COUNT                                            ~14     !0
         16        IS_SMALLER                                               !1, ~14
         17      > JMPNZ                                                    ~15, ->3
   18    18    >   INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.14 ms | 1395 KiB | 15 Q