3v4l.org

run code in 300+ PHP versions simultaneously
<?php //complex variable syntax: ${'clr'} = "red"; // set dynamic variable $type = 'fruit'; ${'lovely' . $type} = 'apples'; echo "${'clr'} ${'lovely' . $type}\n"; // red apples
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iXu85
function name:  (null)
number of ops:  13
compiled vars:  !0 = $clr, !1 = $type
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 'red'
    8     1        ASSIGN                                                   !1, 'fruit'
    9     2        CONCAT                                           ~4      'lovely', !1
          3        FETCH_W                      local               $5      ~4
          4        ASSIGN                                                   $5, 'apples'
   11     5        ROPE_INIT                                     4  ~10     !0
          6        ROPE_ADD                                      1  ~10     ~10, '+'
          7        CONCAT                                           ~7      'lovely', !1
          8        FETCH_R                      local               ~8      ~7
          9        ROPE_ADD                                      2  ~10     ~10, ~8
         10        ROPE_END                                      3  ~9      ~10, '%0A'
         11        ECHO                                                     ~9
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.35 ms | 1392 KiB | 13 Q