3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'cup'; $name = 'coffee'; $str = 'This is a $string with my $name in it.'; echo $str. "\n"; eval("\$str = \"$str\";"); echo $str. "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pW3Rd
function name:  (null)
number of ops:  12
compiled vars:  !0 = $string, !1 = $name, !2 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'cup'
    4     1        ASSIGN                                                   !1, 'coffee'
    5     2        ASSIGN                                                   !2, 'This+is+a+%24string+with+my+%24name+in+it.'
    6     3        CONCAT                                           ~6      !2, '%0A'
          4        ECHO                                                     ~6
    7     5        ROPE_INIT                                     3  ~8      '%24str+%3D+%22'
          6        ROPE_ADD                                      1  ~8      ~8, !2
          7        ROPE_END                                      2  ~7      ~8, '%22%3B'
          8        INCLUDE_OR_EVAL                                          ~7, EVAL
    8     9        CONCAT                                           ~11     !2, '%0A'
         10        ECHO                                                     ~11
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.65 ms | 1397 KiB | 13 Q