3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.21 ms | 1392 KiB | 13 Q