3v4l.org

run code in 300+ PHP versions simultaneously
<?php $QuestionTypeSelector = 'AddingFractions'; $id = 4; echo "UPDATE answers SET '{$QuestionTypeSelector}Score' = '2' WHERE user_id=$id";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qB63n
function name:  (null)
number of ops:  8
compiled vars:  !0 = $QuestionTypeSelector, !1 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'AddingFractions'
    4     1        ASSIGN                                                   !1, 4
    5     2        ROPE_INIT                                     4  ~5      'UPDATE+answers+SET+%27'
          3        ROPE_ADD                                      1  ~5      ~5, !0
          4        ROPE_ADD                                      2  ~5      ~5, 'Score%27+%3D+%272%27+WHERE+user_id%3D'
          5        ROPE_END                                      3  ~4      ~5, !1
          6        ECHO                                                     ~4
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.23 ms | 1397 KiB | 13 Q