3v4l.org

run code in 300+ PHP versions simultaneously
<?php $id = 3; $str = "active$id"; $$str = 1; echo "STR = $str\n"; echo "A = $active3\n"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VoKlW
function name:  (null)
number of ops:  15
compiled vars:  !0 = $id, !1 = $str, !2 = $active3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 3
    5     1        NOP                                                      
          2        FAST_CONCAT                                      ~4      'active', !0
          3        ASSIGN                                                   !1, ~4
    7     4        FETCH_W                      local               $6      !1
          5        ASSIGN                                                   $6, 1
    9     6        ROPE_INIT                                     3  ~9      'STR+%3D+'
          7        ROPE_ADD                                      1  ~9      ~9, !1
          8        ROPE_END                                      2  ~8      ~9, '%0A'
          9        ECHO                                                     ~8
   10    10        ROPE_INIT                                     3  ~12     'A+%3D+'
         11        ROPE_ADD                                      1  ~12     ~12, !2
         12        ROPE_END                                      2  ~11     ~12, '%0A'
         13        ECHO                                                     ~11
   12    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.83 ms | 1392 KiB | 13 Q