3v4l.org

run code in 300+ PHP versions simultaneously
<?php $variable = 'something'; $string = "this is my string that contains a $variable in text form, but i want the variable to actually contain $variable when i echo it"; echo $string;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PhEb1
function name:  (null)
number of ops:  9
compiled vars:  !0 = $variable, !1 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'something'
    5     1        ROPE_INIT                                     5  ~4      'this+is+my+string+that+contains+a+'
          2        ROPE_ADD                                      1  ~4      ~4, !0
          3        ROPE_ADD                                      2  ~4      ~4, '+in+text+form%2C+but+i+want+the+variable+to+actually+contain+'
          4        ROPE_ADD                                      3  ~4      ~4, !0
          5        ROPE_END                                      4  ~3      ~4, '+when+i+echo+it'
          6        ASSIGN                                                   !1, ~3
    7     7        ECHO                                                     !1
    8     8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.06 ms | 997 KiB | 13 Q