3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test2 = 2; $arr = array('omg' => 'omg'); $test = <<<EOT test {$test2} {$arr['omg']} EOT; echo $test;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OBTTn
function name:  (null)
number of ops:  10
compiled vars:  !0 = $test2, !1 = $arr, !2 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 2
    3     1        ASSIGN                                                   !1, <array>
    5     2        ROPE_INIT                                     4  ~7      'test%0A'
    6     3        ROPE_ADD                                      1  ~7      ~7, !0
          4        ROPE_ADD                                      2  ~7      ~7, '%0A'
    7     5        FETCH_DIM_R                                      ~5      !1, 'omg'
          6        ROPE_END                                      3  ~6      ~7, ~5
    4     7        ASSIGN                                                   !2, ~6
    9     8        ECHO                                                     !2
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.71 ms | 1392 KiB | 13 Q