3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('ANIMAL','turtles'); $constant='constant'; echo "I like {$constant('ANIMAL')}";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PoEKB
function name:  (null)
number of ops:  12
compiled vars:  !0 = $constant
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'ANIMAL'
          2        SEND_VAL                                                 'turtles'
          3        DO_ICALL                                                 
    3     4        ASSIGN                                                   !0, 'constant'
    5     5        NOP                                                      
          6        INIT_DYNAMIC_CALL                                        !0
          7        SEND_VAL_EX                                              'ANIMAL'
          8        DO_FCALL                                      0  $3      
          9        FAST_CONCAT                                      ~4      'I+like+', $3
         10        ECHO                                                     ~4
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.67 ms | 1394 KiB | 15 Q