3v4l.org

run code in 300+ PHP versions simultaneously
<?php class tool { //If this is used remember to replace Void with $target public function mute() { global $target; echo("UPDATE users SET mute='1' WHERE name='". $target ."'"); } } $target = 'myName'; $t = new tool(); $t->mute();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p7oH4
function name:  (null)
number of ops:  7
compiled vars:  !0 = $target, !1 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   ASSIGN                                                   !0, 'myName'
   23     1        NEW                                              $3      'tool'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
   24     4        INIT_METHOD_CALL                                         !1, 'mute'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class tool:
Function mute:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p7oH4
function name:  mute
number of ops:  5
compiled vars:  !0 = $target
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   BIND_GLOBAL                                              !0, 'target'
   14     1        CONCAT                                           ~1      'UPDATE+users+SET+mute%3D%271%27+WHERE+name%3D%27', !0
          2        CONCAT                                           ~2      ~1, '%27'
          3        ECHO                                                     ~2
   16     4      > RETURN                                                   null

End of function mute

End of class tool.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.13 ms | 1393 KiB | 13 Q