3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user ='pierre'; $sql = "SELECT * FROM muziek WHERE user= '$user'"; echo $sql.PHP_EOL; unset($sql); $sql = 'SELECT * FROM muziek WHERE user=$user'; echo $sql.PHP_EOL; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4opbg
function name:  (null)
number of ops:  12
compiled vars:  !0 = $user, !1 = $sql
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'pierre'
    3     1        ROPE_INIT                                     3  ~4      'SELECT+%2A+FROM+muziek+WHERE+user%3D+%27'
          2        ROPE_ADD                                      1  ~4      ~4, !0
          3        ROPE_END                                      2  ~3      ~4, '%27'
          4        ASSIGN                                                   !1, ~3
    4     5        CONCAT                                           ~7      !1, '%0A'
          6        ECHO                                                     ~7
    6     7        UNSET_CV                                                 !1
    7     8        ASSIGN                                                   !1, 'SELECT+%2A+FROM+muziek+WHERE+user%3D%24user'
    9     9        CONCAT                                           ~9      !1, '%0A'
         10        ECHO                                                     ~9
   10    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.69 ms | 1440 KiB | 13 Q