3v4l.org

run code in 300+ PHP versions simultaneously
<?php $val = 'abcd'; echo eval('return $'.val.';');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G6Loo
function name:  (null)
number of ops:  7
compiled vars:  !0 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'abcd'
    3     1        FETCH_CONSTANT                                   ~2      'val'
          2        CONCAT                                           ~3      'return+%24', ~2
          3        CONCAT                                           ~4      ~3, '%3B'
          4        INCLUDE_OR_EVAL                                  $5      ~4, EVAL
          5        ECHO                                                     $5
          6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.67 ms | 1392 KiB | 13 Q