3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($a = $b = []; count($a) < 4; $b = &$a[], $b = $a) ; var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 3
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 3
Branch analysis from position: 9
Branch analysis from position: 3
filename:       /in/J0TpV
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                           ~2      !1, <array>
          1        ASSIGN                                                   !0, ~2
          2      > JMP                                                      ->6
          3    >   FETCH_DIM_W                                      $4      !0
          4        ASSIGN_REF                                               !1, $4
          5        ASSIGN                                                   !1, !0
          6    >   COUNT                                            ~7      !0
          7        IS_SMALLER                                               ~7, 4
          8      > JMPNZ                                                    ~8, ->3
    5     9    >   INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.64 ms | 1394 KiB | 15 Q