3v4l.org

run code in 300+ PHP versions simultaneously
<?php const foo = "bar"; $x = 'test' . "$foo"; echo(x);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G7OTs
function name:  (null)
number of ops:  7
compiled vars:  !0 = $x, !1 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                            'foo', 'bar'
    4     1        CAST                                          6  ~2      !1
          2        CONCAT                                           ~3      'test', ~2
          3        ASSIGN                                                   !0, ~3
    5     4        FETCH_CONSTANT                                   ~5      'x'
          5        ECHO                                                     ~5
          6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.36 ms | 1396 KiB | 14 Q