3v4l.org

run code in 300+ PHP versions simultaneously
<?php $zahl1 = 1; $operator = "+"; $zahl2 = 3; $neuezahl = '$zahl1' . $operator . '$zahl3;'; echo $neuezahl; echo eval($neuezahl);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UbsPV
function name:  (null)
number of ops:  10
compiled vars:  !0 = $zahl1, !1 = $operator, !2 = $zahl2, !3 = $neuezahl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    4     1        ASSIGN                                                   !1, '%2B'
    5     2        ASSIGN                                                   !2, 3
    7     3        CONCAT                                           ~7      '%24zahl1', !1
          4        CONCAT                                           ~8      ~7, '%24zahl3%3B'
          5        ASSIGN                                                   !3, ~8
    9     6        ECHO                                                     !3
   11     7        INCLUDE_OR_EVAL                                  $10     !3, EVAL
          8        ECHO                                                     $10
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.5 ms | 1384 KiB | 13 Q