3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sql = ' UPDATE `author_profile` SET `profile_score` = `profile_score`' . (TRUE === $vote)? '+1' : '-1' . ' WHERE `profile_author_id` = ? '; echo $sql;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SFfbA
function name:  (null)
number of ops:  9
compiled vars:  !0 = $sql, !1 = $vote
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   TYPE_CHECK                                    8  ~2      !1
          1        CONCAT                                           ~3      '%0A++++++++++++UPDATE+%60author_profile%60%0A++++++++++++SET+%60profile_score%60+%3D+%60profile_score%60', ~2
          2      > JMPZ                                                     ~3, ->5
          3    >   QM_ASSIGN                                        ~4      '%2B1'
          4      > JMP                                                      ->6
          5    >   QM_ASSIGN                                        ~4      '-1%0A++++++++++++WHERE+%60profile_author_id%60+%3D+%3F%0A++++++++'
    2     6    >   ASSIGN                                                   !0, ~4
    8     7        ECHO                                                     !0
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.66 ms | 1393 KiB | 13 Q