3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = []; for($i = 0; $i < 10; ++$i) { $str[] = $i; $count = count($str); $int = (int) $str; echo "\$int = {$int}; \$count = {$count};\n"; }
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/ELsOt
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    >   ASSIGN_DIM                                               !0
          4        OP_DATA                                                  !1
    6     5        COUNT                                            ~7      !0
          6        ASSIGN                                                   !2, ~7
    7     7        CAST                                          4  ~9      !0
          8        ASSIGN                                                   !3, ~9
    8     9        ROPE_INIT                                     5  ~12     '%24int+%3D+'
         10        ROPE_ADD                                      1  ~12     ~12, !3
         11        ROPE_ADD                                      2  ~12     ~12, '%3B+%24count+%3D+'
         12        ROPE_ADD                                      3  ~12     ~12, !2
         13        ROPE_END                                      4  ~11     ~12, '%3B%0A'
         14        ECHO                                                     ~11
    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:
142.37 ms | 1398 KiB | 13 Q