3v4l.org

run code in 300+ PHP versions simultaneously
<?php $zahl1 = 1; $operator = "+"; $zahl2 = 3; $neuezahl = '$zahl1' . $operator . '$zahl2;'; //echo $neuezahl; echo eval($neuezahl);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9SfQR
function name:  (null)
number of ops:  9
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, '%24zahl2%3B'
          5        ASSIGN                                                   !3, ~8
   11     6        INCLUDE_OR_EVAL                                  $10     !3, EVAL
          7        ECHO                                                     $10
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.5 ms | 1392 KiB | 13 Q