3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.3 ms | 1394 KiB | 15 Q