3v4l.org

run code in 300+ PHP versions simultaneously
<?php ${x} = 'a thing of beauty ...'; echo "${x}\n"; echo ${x},"\n"; echo $x;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gaMYR
function name:  (null)
number of ops:  12
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_CONSTANT                                   ~1      'x'
          1        FETCH_W                      local               $2      ~1
          2        ASSIGN                                                   $2, 'a+thing+of+beauty+...'
    3     3        NOP                                                      
          4        FAST_CONCAT                                      ~4      !0, '%0A'
          5        ECHO                                                     ~4
    4     6        FETCH_CONSTANT                                   ~5      'x'
          7        FETCH_R                      local               ~6      ~5
          8        ECHO                                                     ~6
          9        ECHO                                                     '%0A'
    5    10        ECHO                                                     !0
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.28 ms | 1393 KiB | 13 Q