3v4l.org

run code in 500+ PHP versions simultaneously
<?php $entity_type_id = 'node'; print "entity.{$entity_type_id}.canonical" . PHP_EOL; print "entity.$entity_type_id.canonical" . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UKWcF
function name:  (null)
number of ops:  12
compiled vars:  !0 = $entity_type_id
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 'node'
    3     1        ROPE_INIT                                         3  ~3      'entity.'
          2        ROPE_ADD                                          1  ~3      ~3, !0
          3        ROPE_END                                          2  ~2      ~3, '.canonical'
          4        CONCAT                                               ~5      ~2, '%0A'
          5        ECHO                                                         ~5
    4     6        ROPE_INIT                                         3  ~7      'entity.'
          7        ROPE_ADD                                          1  ~7      ~7, !0
          8        ROPE_END                                          2  ~6      ~7, '.canonical'
          9        CONCAT                                               ~9      ~6, '%0A'
         10        ECHO                                                         ~9
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.4 ms | 2136 KiB | 13 Q