3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = 1000; for ($i = 1; $i < $n; $i++) { ${"$i level"} = ($i + 1).' level'; } $dream = 'Unicorn'; ${"$n level"} = 'dream'; $DiCaprio = '1 level'; $result = str_repeat('$', $n + 2).'DiCaprio'; printf("%s = '%s';", $result, eval("return $result;"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 3
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 3
Branch analysis from position: 12
Branch analysis from position: 3
filename:       /in/n0aKX
function name:  (null)
number of ops:  35
compiled vars:  !0 = $n, !1 = $i, !2 = $dream, !3 = $DiCaprio, !4 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1000
    5     1        ASSIGN                                                   !1, 1
          2      > JMP                                                      ->10
    6     3    >   NOP                                                      
          4        FAST_CONCAT                                      ~7      !1, '+level'
          5        ADD                                              ~9      !1, 1
          6        CONCAT                                           ~10     ~9, '+level'
          7        FETCH_W                      local               $8      ~7
          8        ASSIGN                                                   $8, ~10
    5     9        PRE_INC                                                  !1
         10    >   IS_SMALLER                                               !1, !0
         11      > JMPNZ                                                    ~13, ->3
    9    12    >   ASSIGN                                                   !2, 'Unicorn'
   10    13        NOP                                                      
         14        FAST_CONCAT                                      ~15     !0, '+level'
         15        FETCH_W                      local               $16     ~15
         16        ASSIGN                                                   $16, 'dream'
   11    17        ASSIGN                                                   !3, '1+level'
   13    18        INIT_FCALL                                               'str_repeat'
         19        SEND_VAL                                                 '%24'
         20        ADD                                              ~19     !0, 2
         21        SEND_VAL                                                 ~19
         22        DO_ICALL                                         $20     
         23        CONCAT                                           ~21     $20, 'DiCaprio'
         24        ASSIGN                                                   !4, ~21
   14    25        INIT_FCALL                                               'printf'
         26        SEND_VAL                                                 '%25s+%3D+%27%25s%27%3B'
         27        SEND_VAR                                                 !4
         28        ROPE_INIT                                     3  ~24     'return+'
         29        ROPE_ADD                                      1  ~24     ~24, !4
         30        ROPE_END                                      2  ~23     ~24, '%3B'
         31        INCLUDE_OR_EVAL                                  $26     ~23, EVAL
         32        SEND_VAR                                                 $26
         33        DO_ICALL                                                 
         34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
292.08 ms | 1012 KiB | 15 Q