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/URoS1
function name:  (null)
number of ops:  6
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        ECHO                                                     !0
          5      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.94 ms | 1392 KiB | 13 Q