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'; 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/UUeKW
function name:  (null)
number of ops:  13
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'
    5     3        CONCAT                                           ~6      !2, '%0A'
          4        ECHO                                                     ~6
    6     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
    7     9        CONCAT                                           ~11     !2, '%0A'
         10        ECHO                                                     ~11
    8    11        ECHO                                                     '%3B'
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.02 ms | 1393 KiB | 13 Q