3v4l.org

run code in 300+ PHP versions simultaneously
<?php function send_notification($params) { $message = stripslashes(str_replace('\n', '', $params['message'])); $message = $message; $userid = $params['userid']; $date = date('Y-m-d H:i:s'); var_dump("INSERT INTO userNot(userid, message, date) VALUES('".$userid."', '".$message."', '".$date."')"); } $nick = '?A users username?'; $myid = '1234567890'; $msg = 'Whatsup?'; $params = array( 'message' => $nick.' has sent you a new message: '.$msg, 'userid' => $myid ); send_notification($params);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X28bI
function name:  (null)
number of ops:  12
compiled vars:  !0 = $nick, !1 = $myid, !2 = $msg, !3 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ASSIGN                                                   !0, '%3FA+users+username%3F'
   14     1        ASSIGN                                                   !1, '1234567890'
   15     2        ASSIGN                                                   !2, 'Whatsup%3F'
   17     3        CONCAT                                           ~7      !0, '+has+sent+you+a+new+message%3A+'
          4        CONCAT                                           ~8      ~7, !2
          5        INIT_ARRAY                                       ~9      ~8, 'message'
   18     6        ADD_ARRAY_ELEMENT                                ~9      !1, 'userid'
   16     7        ASSIGN                                                   !3, ~9
   20     8        INIT_FCALL                                               'send_notification'
          9        SEND_VAR                                                 !3
         10        DO_FCALL                                      0          
         11      > RETURN                                                   1

Function send_notification:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X28bI
function name:  send_notification
number of ops:  28
compiled vars:  !0 = $params, !1 = $message, !2 = $userid, !3 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'stripslashes'
          2        INIT_FCALL                                               'str_replace'
          3        SEND_VAL                                                 '%5Cn'
          4        SEND_VAL                                                 ''
          5        FETCH_DIM_R                                      ~4      !0, 'message'
          6        SEND_VAL                                                 ~4
          7        DO_ICALL                                         $5      
          8        SEND_VAR                                                 $5
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !1, $6
    5    11        ASSIGN                                                   !1, !1
    6    12        FETCH_DIM_R                                      ~9      !0, 'userid'
         13        ASSIGN                                                   !2, ~9
    7    14        INIT_FCALL                                               'date'
         15        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         16        DO_ICALL                                         $11     
         17        ASSIGN                                                   !3, $11
    9    18        INIT_FCALL                                               'var_dump'
         19        CONCAT                                           ~13     'INSERT+INTO+userNot%28userid%2C+message%2C+date%29+VALUES%28%27', !2
         20        CONCAT                                           ~14     ~13, '%27%2C+%27'
         21        CONCAT                                           ~15     ~14, !1
         22        CONCAT                                           ~16     ~15, '%27%2C+%27'
         23        CONCAT                                           ~17     ~16, !3
         24        CONCAT                                           ~18     ~17, '%27%29'
         25        SEND_VAL                                                 ~18
         26        DO_ICALL                                                 
   10    27      > RETURN                                                   null

End of function send_notification

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.17 ms | 1403 KiB | 22 Q