3v4l.org

run code in 300+ PHP versions simultaneously
<?php $record = array( 'email' => $this->toEmail, 'user_id' => 0, 'course_id' => $this->courseid, 'group_id' => $this->groupid, 'notification_id' => 'CHAMPION_STATUS_UPDATE', 'datestamp' => date('Y-m-d h:i:s'), 'unixtime' => time(), ); $q = 'REPLACE INTO `kognito_reminders_log` ('.implode(array_keys($record), ', ').') VALUES ('.implode($record, ', ').');'; echo $q;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lO6l9
function name:  (null)
number of ops:  37
compiled vars:  !0 = $record, !1 = $q
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   FETCH_THIS                                       $2      
          1        FETCH_OBJ_R                                      ~3      $2, 'toEmail'
          2        INIT_ARRAY                                       ~4      ~3, 'email'
    5     3        ADD_ARRAY_ELEMENT                                ~4      0, 'user_id'
    6     4        FETCH_THIS                                       $5      
          5        FETCH_OBJ_R                                      ~6      $5, 'courseid'
          6        ADD_ARRAY_ELEMENT                                ~4      ~6, 'course_id'
    7     7        FETCH_THIS                                       $7      
          8        FETCH_OBJ_R                                      ~8      $7, 'groupid'
          9        ADD_ARRAY_ELEMENT                                ~4      ~8, 'group_id'
    8    10        ADD_ARRAY_ELEMENT                                ~4      'CHAMPION_STATUS_UPDATE', 'notification_id'
    9    11        INIT_FCALL                                               'date'
         12        SEND_VAL                                                 'Y-m-d+h%3Ai%3As'
         13        DO_ICALL                                         $9      
         14        ADD_ARRAY_ELEMENT                                ~4      $9, 'datestamp'
   10    15        INIT_FCALL                                               'time'
         16        DO_ICALL                                         $10     
         17        ADD_ARRAY_ELEMENT                                ~4      $10, 'unixtime'
    3    18        ASSIGN                                                   !0, ~4
   12    19        INIT_FCALL                                               'implode'
         20        INIT_FCALL                                               'array_keys'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $12     
         23        SEND_VAR                                                 $12
         24        SEND_VAL                                                 '%2C+'
         25        DO_ICALL                                         $13     
         26        CONCAT                                           ~14     'REPLACE+INTO+%60kognito_reminders_log%60+%28', $13
         27        CONCAT                                           ~15     ~14, '%29+VALUES+%28'
         28        INIT_FCALL                                               'implode'
         29        SEND_VAR                                                 !0
         30        SEND_VAL                                                 '%2C+'
         31        DO_ICALL                                         $16     
         32        CONCAT                                           ~17     ~15, $16
         33        CONCAT                                           ~18     ~17, '%29%3B'
         34        ASSIGN                                                   !1, ~18
   13    35        ECHO                                                     !1
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.42 ms | 1396 KiB | 21 Q