3v4l.org

run code in 300+ PHP versions simultaneously
<?php $params = [ 'types' => 'sss', 'endtime' => '000', 'restart' => '999', 'id' => $serverid ]; $query = 'UPDATE %s SET endtime = ?, evcomment = "Errors: Interrupted" WHERE starttime = endtime AND starttime < ? AND server = ?'; foreach ([ 'events', 'ongoing_events' ] as $table) { printf($query, $table); echo PHP_EOL; print_r($params); echo PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 18
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 18
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/OF0hm
function name:  (null)
number of ops:  20
compiled vars:  !0 = $params, !1 = $serverid, !2 = $query, !3 = $table
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_ARRAY                                       ~4      'sss', 'types'
    5     1        ADD_ARRAY_ELEMENT                                ~4      '000', 'endtime'
    6     2        ADD_ARRAY_ELEMENT                                ~4      '999', 'restart'
    7     3        ADD_ARRAY_ELEMENT                                ~4      !1, 'id'
    3     4        ASSIGN                                                   !0, ~4
    9     5        ASSIGN                                                   !2, 'UPDATE+%25s%0A++++++++++SET+endtime+%3D+%3F%2C+evcomment+%3D+%22Errors%3A+Interrupted%22%0A++++++++++WHERE+starttime+%3D+endtime%0A++++++++++AND+starttime+%3C+%3F%0A++++++++++AND+server+%3D+%3F'
   14     6      > FE_RESET_R                                       $7      <array>, ->18
          7    > > FE_FETCH_R                                               $7, !3, ->18
   15     8    >   INIT_FCALL                                               'printf'
          9        SEND_VAR                                                 !2
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                                 
   16    12        ECHO                                                     '%0A'
   17    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
   18    16        ECHO                                                     '%0A'
   14    17      > JMP                                                      ->7
         18    >   FE_FREE                                                  $7
   19    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.75 ms | 1395 KiB | 17 Q