3v4l.org

run code in 500+ PHP versions simultaneously
<?php $int = 2; $str = "lol"; for ($i = 1; $i < $int; $i++) { $str .= $str; } var_dump($str);
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 = 8, Position 2 = 4
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 4
Branch analysis from position: 8
Branch analysis from position: 4
filename:       /in/ZA8vY
function name:  (null)
number of ops:  12
compiled vars:  !0 = $int, !1 = $str, !2 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 2
    3     1        ASSIGN                                                       !1, 'lol'
    5     2        ASSIGN                                                       !2, 1
          3      > JMP                                                          ->6
    6     4    >   ASSIGN_OP                                         8          !1, !1
    5     5        PRE_INC                                                      !2
          6    >   IS_SMALLER                                                   !2, !0
          7      > JMPNZ                                                        ~8, ->4
    9     8    >   INIT_FCALL                                                   'var_dump'
          9        SEND_VAR                                                     !1
         10        DO_ICALL                                                     
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.52 ms | 1310 KiB | 14 Q