3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.59 ms | 1392 KiB | 13 Q