3v4l.org

run code in 300+ PHP versions simultaneously
<?php define ("FOO", 34); $str="bla bla ${FOO} bar"; echo $str;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KfDKA
function name:  (null)
number of ops:  10
compiled vars:  !0 = $str, !1 = $FOO
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  ~4      'bla+bla+'
          5        ROPE_ADD                                      1  ~4      ~4, !1
          6        ROPE_END                                      2  ~3      ~4, '+bar'
          7        ASSIGN                                                   !0, ~3
    5     8        ECHO                                                     !0
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
202.58 ms | 1393 KiB | 15 Q