3v4l.org

run code in 300+ PHP versions simultaneously
<?php $variables = '$variables'; $mystring = <<<EOT I can use "double quotes" and 'single quotes', plus $variables too, which will be properly converted to their values, you can even type EOT, as long as it is not alone on a line, like this: EOT;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YXMnm
function name:  (null)
number of ops:  6
compiled vars:  !0 = $variables, !1 = $mystring
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%24variables'
    4     1        ROPE_INIT                                     3  ~4      '+++I+can+use+%22double+quotes%22%0A+++and+%27single+quotes%27%2C%0A+++plus+'
    6     2        ROPE_ADD                                      1  ~4      ~4, !0
          3        ROPE_END                                      2  ~3      ~4, '+too%2C+which+will%0A+++be+properly+converted+to+their+values%2C%0A+++you+can+even+type+EOT%2C+as+long+as+it%0A+++is+not+alone+on+a+line%2C+like+this%3A'
    3     4        ASSIGN                                                   !1, ~3
   10     5      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.98 ms | 1392 KiB | 13 Q