3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.6 ms | 1393 KiB | 13 Q