3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = []; for($i = 0; $i < 10; ++$i) { $count = count($str); $int = (int) $str; echo "\$int = {$int}; \$count = {$count};\n"; $str[] = $i; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
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 = 44) Position 1 = 18, Position 2 = 3
Branch analysis from position: 18
Branch analysis from position: 3
filename:       /in/4m7MF
function name:  (null)
number of ops:  19
compiled vars:  !0 = $str, !1 = $i, !2 = $count, !3 = $int
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->16
    5     3    >   COUNT                                            ~6      !0
          4        ASSIGN                                                   !2, ~6
    6     5        CAST                                          4  ~8      !0
          6        ASSIGN                                                   !3, ~8
    7     7        ROPE_INIT                                     5  ~11     '%24int+%3D+'
          8        ROPE_ADD                                      1  ~11     ~11, !3
          9        ROPE_ADD                                      2  ~11     ~11, '%3B+%24count+%3D+'
         10        ROPE_ADD                                      3  ~11     ~11, !2
         11        ROPE_END                                      4  ~10     ~11, '%3B%0A'
         12        ECHO                                                     ~10
    8    13        ASSIGN_DIM                                               !0
         14        OP_DATA                                                  !1
    4    15        PRE_INC                                                  !1
         16    >   IS_SMALLER                                               !1, 10
         17      > JMPNZ                                                    ~16, ->3
    9    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.19 ms | 1398 KiB | 13 Q