3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.71 ms | 1392 KiB | 13 Q